/* =========================================================
   KURIOS STORES
   MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   1. GLOBAL SETTINGS
   ========================================================= */

:root {

    /* Kurios brand colours */
    --purple: #6d28d9;
    --purple-dark: #4c1d95;
    --purple-light: #8b5cf6;
    --purple-soft: #f3e8ff;

    /* General colours */
    --white: #ffffff;
    --black: #171717;
    --text: #27272a;
    --muted: #71717a;
    --border: #e4e4e7;
    --background: #fafafa;
    --light-background: #f7f5fb;

    /* Status colours */
    --green: #16a34a;
    --red: #dc2626;
    --orange: #ea580c;

    /* Effects */
    --shadow-small: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.09);
    --shadow-large: 0 20px 50px rgba(0, 0, 0, 0.14);

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;

    --transition: 0.25s ease;
}


/* Remove default browser spacing */

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


/* Smooth scrolling */

html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}


/* Main body */

body {

    font-family: "Inter", Arial, sans-serif;

    background: var(--white);

    color: var(--text);

    line-height: 1.6;

    max-width: 100vw;

    overflow-x: hidden;
}


/* Links */

a {
    text-decoration: none;
    color: inherit;
}


/* Buttons */

button,
input,
textarea {
    font-family: inherit;
}


/* Buttons should look clickable */

button {
    cursor: pointer;
}


/* Images */

img {
    max-width: 100%;
    display: block;
}


/* Logged-in dashboard is hidden by default — JS reveals it (and
   hides #loggedOutHero) once it confirms a student is signed in.
   Without this, both heroes render on first paint until the
   script at the bottom of the page runs. */

#loggedInHero {
    display: none;
}


/* =========================================================
   2. REUSABLE CONTAINER
   ========================================================= */

.footer-container,
.rewards-container {

    width: min(1180px, 92%);

    margin: 0 auto;
}


/* Nav bar gets more breathing room on wide screens so the
   links/icons/account cluster sits closer to the true edge
   instead of stopping at the same 1180px column as the page
   content sections. */

.nav-container {

    width: min(1440px, 96%);

    margin: 0 auto;
}


/* =========================================================
   3. NAVIGATION
   ========================================================= */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}


.nav-container {

    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* Logo */

.logo-link {

    display: flex;

    align-items: center;

    flex-shrink: 0;
}


.nav-logo {

    width: 125px;

    height: auto;

    object-fit: contain;
}


/* Desktop navigation */

.main-nav {

    display: flex;

    align-items: center;

    gap: 30px;

    margin-left: auto;
}


.nav-link {

    position: relative;

    color: var(--muted);

    font-size: 14px;

    font-weight: 600;

    padding: 27px 0;

    transition: var(--transition);
}


.nav-link:hover,
.nav-link.active {

    color: var(--purple);
}


.nav-link.active::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 18px;

    height: 2px;

    border-radius: 5px;

    background: var(--purple);
}


/* Navigation actions */

.nav-actions {

    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;
}


/* Icon buttons */

.nav-icon-button {

    position: relative;

    width: 42px;

    height: 42px;

    border: 1px solid var(--border);

    background: var(--white);

    color: var(--text);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: var(--transition);
}


.nav-icon-button:hover {

    color: var(--purple);

    border-color: var(--purple-light);

    background: var(--purple-soft);

    transform: translateY(-2px);
}


/* Notification/cart numbers */

.notification-badge,
.cart-badge,
.cook-orders-badge {

    position: absolute;

    top: -3px;

    right: -3px;

    min-width: 18px;

    height: 18px;

    padding: 0 4px;

    border-radius: 50px;

    background: var(--purple);

    color: var(--white);

    font-size: 10px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* Sign in button */

.signin-nav-button {

    border: none;

    background: var(--purple);

    color: var(--white);

    padding: 11px 18px;

    border-radius: 9px;

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 13px;

    font-weight: 700;

    transition: var(--transition);
}


.signin-nav-button.has-avatar {

    background: transparent;

    padding: 0;

    border-radius: 50%;
}

.signin-nav-button.has-avatar:hover {

    background: transparent;

    transform: none;

    box-shadow: none;
}

.header-avatar-circle {

    width: 40px;
    height: 40px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--purple),
        var(--purple-light)
    );

    border: 2px solid var(--purple-soft);
}

.header-avatar-circle img {

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-avatar-initial {

    color: var(--white);
    font-size: 15px;
    font-weight: 700;
}


.signin-nav-button:hover {

    background: var(--purple-dark);

    transform: translateY(-2px);

    box-shadow: var(--shadow-small);
}


/* Mobile menu button */

.mobile-menu-button {

    display: none;

    width: 42px;

    height: 42px;

    border: 1px solid var(--border);

    background: var(--white);

    border-radius: 9px;

    color: var(--text);

    font-size: 18px;
}


/* Mobile navigation */

.mobile-menu {

    display: none;

    flex-direction: column;

    padding: 10px 5% 20px;

    border-top: 1px solid var(--border);

    background: var(--white);
}


.mobile-menu a {

    padding: 13px 0;

    border-bottom: 1px solid #f0f0f0;

    font-size: 14px;

    font-weight: 600;
}


.mobile-menu a:hover {

    color: var(--purple);
}


/* =========================================================
   4. HERO
   ========================================================= */

.hero {

    position: relative;

    min-height: 600px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(139, 92, 246, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #faf7ff 55%,
            #f3e8ff 100%
        );
}


.hero-content {

    position: relative;

    z-index: 2;

    width: min(1180px, 92%);

    margin: 0 auto;

    padding: 80px 0;
}


.hero-label {

    display: inline-block;

    margin-bottom: 18px;

    color: var(--purple);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}


.hero h1 {

    max-width: 750px;

    color: var(--black);

    font-size: clamp(45px, 7vw, 78px);

    line-height: 1.04;

    letter-spacing: -3px;

    margin-bottom: 25px;

    font-weight: 800;
}


.hero h1 span {

    color: var(--purple);
}


.hero p {

    max-width: 600px;

    color: var(--muted);

    font-size: 20px;

    margin-bottom: 8px;
}


.hero .hero-subtext {

    font-size: 15px;

    margin-bottom: 30px;
}


/* Hero buttons */

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}


/* Main purple button */

.primary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: none;

    background: var(--purple);

    color: var(--white);

    padding: 14px 22px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    transition: var(--transition);
}


.primary-button:hover {

    background: var(--purple-dark);

    transform: translateY(-2px);

    box-shadow: var(--shadow-medium);
}


/* Secondary button */

.secondary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border);

    background: var(--white);

    color: var(--text);

    padding: 13px 21px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    transition: var(--transition);
}


.secondary-button:hover {

    border-color: var(--purple);

    color: var(--purple);

    transform: translateY(-2px);
}


/* Decorative circles */

.hero-decoration {

    position: absolute;

    inset: 0;

    pointer-events: none;
}


.hero-circle {

    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(109, 40, 217, 0.12);
}


.circle-one {

    width: 420px;

    height: 420px;

    right: -120px;

    top: 50%;

    transform: translateY(-50%);
}


.circle-two {

    width: 260px;

    height: 260px;

    right: 40px;

    top: 50%;

    transform: translateY(-50%);
}


/* =========================================================
   5. GENERAL SECTIONS
   ========================================================= */

.section {

    width: min(1180px, 92%);

    margin: 0 auto;

    padding: 90px 0;
}


.section-heading {

    text-align: center;

    max-width: 650px;

    margin: 0 auto 45px;
}


.section-heading > span,
.section-label {

    display: block;

    color: var(--purple);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 9px;
}


.section-heading h2 {

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.15;

    color: var(--black);

    margin-bottom: 12px;

    letter-spacing: -1px;
}


.section-heading p {

    color: var(--muted);

    font-size: 15px;
}


/* =========================================================
   6. CATEGORIES
   ========================================================= */

.featured-section {

    padding: 70px 24px;

    max-width: 1280px;

    margin: 0 auto;
}

.featured-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    gap: 20px;
}

.featured-grid .product-card {

    cursor: pointer;
}

.category-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.category-card {

    text-align: left;

    border: 1px solid var(--border);

    background: var(--white);

    border-radius: var(--radius-medium);

    padding: 25px;

    transition: var(--transition);
}


.category-card:hover {

    border-color: rgba(109, 40, 217, 0.3);

    transform: translateY(-6px);

    box-shadow: var(--shadow-medium);
}


.category-icon {

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: var(--purple-soft);

    color: var(--purple);

    font-size: 20px;

    margin-bottom: 20px;
}


.category-card h3 {

    font-size: 16px;

    margin-bottom: 8px;

    color: var(--black);
}


.category-card p {

    font-size: 13px;

    color: var(--muted);

    line-height: 1.6;
}


/* =========================================================
   7. SHOP
   ========================================================= */

.shop-section {

    max-width: none;

    width: 100%;

    padding-left: 4%;

    padding-right: 4%;

    background: var(--light-background);
}


.shop-section .section-heading {

    margin-bottom: 30px;
}


/* Product filters */

.product-filters {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 35px;
}


.filter-button {

    border: 1px solid var(--border);

    background: var(--white);

    color: var(--muted);

    padding: 9px 16px;

    border-radius: 50px;

    font-size: 12px;

    font-weight: 700;

    transition: var(--transition);
}


.filter-button:hover,
.filter-button.active {

    background: var(--purple);

    color: var(--white);

    border-color: var(--purple);
}


/* Product grid */

.product-grid {

    width: min(1180px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}


/* Product card */

.product-card {

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    overflow: hidden;

    transition: var(--transition);
}


.product-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow-medium);
}


/* Product image area */

.product-image {

    position: relative;

    height: 210px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(
        145deg,
        #fafafa,
        #f2eafa
    );

    color: var(--purple);

    font-size: 55px;
}


/* Product tag */

.product-tag {

    position: absolute;

    top: 12px;

    left: 12px;

    padding: 6px 9px;

    border-radius: 6px;

    background: var(--purple);

    color: var(--white);

    font-size: 9px;

    font-weight: 700;
}


/* Product information */

.product-info {

    padding: 20px;
}


.product-category {

    color: var(--purple);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


.product-info h3 {

    color: var(--black);

    font-size: 16px;

    margin: 7px 0;
}


.product-info p {

    min-height: 42px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;

    margin-bottom: 17px;
}


/* Product bottom */

.product-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.product-bottom strong {

    color: var(--black);

    font-size: 16px;

    text-decoration: none;
}


/* Add button */

.contact-seller-btn {

    border: 1px solid var(--border);

    background: white;

    color: #6b7280;

    width: 32px;

    height: 32px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    cursor: pointer;

    transition: var(--transition);
}

.wishlist-toggle-btn {
    border: 1px solid var(--border);
    background: white;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-toggle-btn:hover {
    border-color: #f43f5e;
    color: #f43f5e;
}

.wishlist-toggle-btn.active {
    background: #fff1f2;
    border-color: #f43f5e;
    color: #f43f5e;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.contact-seller-btn:hover {

    border-color: var(--purple);

    color: var(--purple);
}


.add-to-cart {

    border: none;

    background: var(--purple-soft);

    color: var(--purple);

    padding: 9px 12px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 800;

    display: flex;

    align-items: center;

    gap: 5px;

    transition: var(--transition);
}


.add-to-cart:hover {

    background: var(--purple);

    color: var(--white);
}


/* =========================================================
   8. REWARDS
   ========================================================= */

.rewards-section {

    padding: 80px 0;

    background: var(--purple);

    color: var(--white);
}


.rewards-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;
}


.rewards-content {

    max-width: 650px;
}


.rewards-content .section-label {

    color: #ddd6fe;
}


.rewards-content h2 {

    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.15;

    letter-spacing: -1.5px;

    margin-bottom: 18px;
}


.rewards-content h2 span {

    color: #ddd6fe;
}


.rewards-content p {

    color: #ede9fe;

    max-width: 550px;

    font-size: 15px;

    margin-bottom: 28px;
}


.rewards-content .primary-button {

    background: var(--white);

    color: var(--purple);
}


.rewards-content .primary-button:hover {

    background: #f5f3ff;
}


/* Rewards card */

.rewards-card {

    min-width: 230px;

    padding: 30px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.22);

    backdrop-filter: blur(10px);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


.reward-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);

    margin-bottom: 18px;

    font-size: 23px;
}


.rewards-card strong {

    font-size: 25px;

    margin-bottom: 4px;
}


.rewards-card span {

    font-size: 12px;

    color: #ddd6fe;
}


/* =========================================================
   9. CHAT SECTION
   ========================================================= */

.chat-section {

    max-width: 1100px;
}


.chat-full-page {

    max-width: 1100px;
}


/* Chat main box */

.chat-preview {

    display: grid;

    grid-template-columns: 210px 300px minmax(0, 1fr) 280px;

    height: min(760px, calc(100vh - 180px));

    min-height: 480px;

    border: 1px solid var(--border);

    border-radius: var(--radius-large);

    overflow: hidden;

    background: var(--white);

    box-shadow: var(--shadow-small);
}

.chat-preview:not(.has-profile-panel) {
    grid-template-columns: 210px 300px minmax(0, 1fr);
}


.chat-full-page .full-page-back-row {
    margin-bottom: 16px;
}


/* Chat sidebar */

.chat-sidebar {

    border-right: 1px solid var(--border);

    background: #fcfcfc;

    display: flex;

    flex-direction: column;

    min-height: 0;
}


#chatContactList {

    flex: 1;

    overflow-y: auto;

    min-height: 0;
}


.chat-sidebar-header {

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}


.chat-sidebar-header h3 {

    font-size: 16px;
}


.chat-sidebar-header button {

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 8px 14px;

    border: none;

    background: var(--purple);

    color: var(--white);

    font-size: 12px;

    font-weight: 700;

    border-radius: 8px;

    cursor: pointer;
}

.chat-sidebar-header button:hover {

    background: var(--purple-dark);
}


/* Chat search */

.chat-search {

    position: relative;

    margin: 15px;
}


.chat-search i {

    position: absolute;

    left: 12px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--muted);

    font-size: 12px;
}


.chat-search input {

    width: 100%;

    border: 1px solid var(--border);

    background: var(--white);

    border-radius: 8px;

    padding: 10px 10px 10px 34px;

    outline: none;

    font-size: 12px;
}


.chat-search input:focus {

    border-color: var(--purple);
}


/* NEW CHAT — ADD BY PHONE NUMBER */

#newChatForm {
    margin: 0 15px 15px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--purple-soft);
}

.new-chat-phone-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 10px;
    outline: none;
    font-size: 12px;
    margin-bottom: 8px;
}

.new-chat-phone-input:focus {
    border-color: var(--purple);
}

.new-chat-find-button {
    width: 100%;
    border: none;
    background: var(--purple);
    color: white;
    border-radius: 8px;
    padding: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.new-chat-find-button:hover {
    background: var(--purple-dark);
}

.new-chat-status {
    margin: 8px 0 0;
    font-size: 11px;
    color: #6b7280;
}

.new-chat-search-result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 8px;
}

.new-chat-search-result-row:hover {
    background: var(--purple-soft);
}

.new-chat-search-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.new-chat-search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-chat-search-result-info strong {
    display: block;
    font-size: 12px;
}

.new-chat-search-result-info span {
    font-size: 10px;
    color: #9ca3af;
}

.chat-contacts-status {
    padding: 0 15px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

.chat-contact-unread-badge {
    background: var(--purple);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}


/* Chat contact */

.chat-contact {

    width: 100%;

    border: none;

    border-left: 3px solid transparent;

    background: transparent;

    display: flex;

    align-items: center;

    gap: 11px;

    text-align: left;

    padding: 13px 16px;

    transition: var(--transition);
}


.chat-contact:hover {

    background: #f5f3ff;
}


.chat-contact.active {

    background: var(--purple-soft);

    border-left-color: var(--purple);
}


/* Avatar */

.chat-avatar {

    width: 40px;

    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #e4e4e7;

    color: var(--text);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 13px;

    font-weight: 800;

    overflow: hidden;
}


.chat-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.owner-avatar {

    background: var(--purple);

    color: var(--white);
}


.chat-contact-info {

    display: flex;

    flex-direction: column;

    overflow: hidden;
}


.chat-contact-info strong {

    font-size: 12px;
}


.chat-contact-info span {

    font-size: 10px;

    color: var(--muted);
}


.online-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--green);

    margin-left: auto;
}


/* Chat window */

.chat-window {

    display: flex;

    flex-direction: column;

    min-width: 0;

    min-height: 0;
}


/* Chat header */

.chat-window-header {

    min-height: 70px;

    padding: 15px 20px;

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    gap: 12px;
}


.chat-back-button {

    display: none;

    border: none;

    background: transparent;

    color: var(--text);

    font-size: 16px;

    width: 32px;

    height: 32px;

    border-radius: 8px;

    cursor: pointer;

    flex-shrink: 0;
}

.chat-back-button:hover {

    background: var(--purple-soft);

    color: var(--purple);
}


/* Context banner */

.chat-context-banner {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 20px;

    background: var(--purple-soft);

    color: var(--purple-dark);

    font-size: 11px;

    font-weight: 600;

    border-bottom: 1px solid var(--border);
}

.chat-context-banner i {

    font-size: 12px;
}


/* Typing indicator */

.chat-typing-indicator {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 20px;

    font-size: 11px;

    color: var(--muted);

    background: #fafafa;
}

.chat-typing-dots {

    display: inline-flex;

    gap: 3px;
}

.chat-typing-dots i {

    width: 5px;

    height: 5px;

    border-radius: 50%;

    background: var(--purple-light);

    display: inline-block;

    animation: chatTypingBounce 1.2s infinite ease-in-out;
}

.chat-typing-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatTypingBounce {

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

    30% {
        transform: translateY(-3px);
        opacity: 1;
    }

}


.chat-user {

    display: flex;

    align-items: center;

    gap: 11px;
}


.chat-user > div:last-child {

    display: flex;

    flex-direction: column;
}


.chat-user strong {

    font-size: 13px;
}


.chat-user span {

    color: var(--green);

    font-size: 10px;
}


.chat-more-button {

    width: 36px;

    height: 36px;

    border: none;

    background: transparent;

    color: var(--muted);

    border-radius: 8px;
}


.chat-more-button:hover {

    background: var(--purple-soft);

    color: var(--purple);
}


/* Messages */

.messages {

    flex: 1;

    padding: 25px;

    overflow-y: auto;

    background: #fafafa;

    display: flex;

    flex-direction: column;

    gap: 18px;
}


.message {

    display: flex;

    flex-direction: column;

    max-width: 70%;
}


.message.sent {

    align-self: flex-end;

    align-items: flex-end;
}


.message.received {

    align-self: flex-start;

    align-items: flex-start;
}


.message-bubble {

    padding: 11px 14px;

    border-radius: 13px;

    font-size: 12px;

    line-height: 1.55;
}


.message.received .message-bubble {

    background: var(--white);

    border: 1px solid var(--border);

    border-bottom-left-radius: 4px;
}


.message.sent .message-bubble {

    background: var(--purple);

    color: var(--white);

    border-bottom-right-radius: 4px;
}


.message span {

    display: flex;

    align-items: center;

    gap: 4px;

    color: var(--muted);

    font-size: 9px;

    margin-top: 5px;
}

.message-read-receipt {

    font-size: 10px;

    color: #9ca3af;
}

.message-read-receipt.read {

    color: var(--purple);
}


/* Message form */

.message-form {

    min-height: 70px;

    padding: 12px 16px;

    display: flex;

    align-items: center;

    gap: 8px;

    border-top: 1px solid var(--border);

    background: var(--white);
}


.message-form button:first-child {

    width: 38px;

    height: 38px;

    border: none;

    background: transparent;

    color: var(--muted);
}


.message-form input {

    flex: 1;

    min-width: 0;

    border: 1px solid var(--border);

    outline: none;

    border-radius: 50px;

    padding: 11px 15px;

    font-size: 12px;
}


.message-form input:focus {

    border-color: var(--purple);
}


.send-message-button {

    width: 40px;

    height: 40px;

    flex-shrink: 0;

    border: none;

    background: var(--purple);

    color: var(--white);

    border-radius: 50%;

    transition: var(--transition);
}


.send-message-button:hover {

    background: var(--purple-dark);

    transform: scale(1.05);
}


/* =========================================================
   10. WHY KURIOS
   ========================================================= */

.why-section {

    background: var(--light-background);

    padding: 80px 4%;
}


.why-grid {

    width: min(1180px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.why-card {

    padding: 25px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    transition: var(--transition);
}


.why-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-small);
}


.why-icon {

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--purple-soft);

    color: var(--purple);

    border-radius: 11px;

    margin-bottom: 17px;
}


.why-card h3 {

    font-size: 15px;

    margin-bottom: 8px;
}


.why-card p {

    font-size: 12px;

    color: var(--muted);

    line-height: 1.6;
}


/* =========================================================
   11. NOTIFICATION PANEL
   ========================================================= */

.notification-panel {

    position: fixed;

    z-index: 3100;

    top: 85px;

    right: 25px;

    width: 360px;

    max-width: calc(100% - 30px);

    max-height: 600px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow-large);

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: var(--transition);
}


.notification-panel.open {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.notification-header {

    padding: 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}


.notification-header h3 {

    font-size: 16px;

    margin-bottom: 3px;
}


.notification-header p {

    color: var(--muted);

    font-size: 10px;
}


.panel-close,
.modal-close {

    width: 34px;

    height: 34px;

    border: none;

    background: #f4f4f5;

    color: var(--muted);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;
}


.notification-list {

    max-height: 500px;

    overflow-y: auto;
}


.notification-item {

    display: flex;

    gap: 12px;

    padding: 16px;

    border-bottom: 1px solid #f1f1f1;

    transition: var(--transition);
}


.notification-item:hover {

    background: #fafafa;
}


.notification-item.unread {

    background: #faf7ff;
}


.notification-icon {

    width: 38px;

    height: 38px;

    flex-shrink: 0;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--purple-soft);

    color: var(--purple);
}


.notification-content strong {

    display: block;

    font-size: 12px;

    margin-bottom: 3px;
}


.notification-content p {

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;
}


.notification-content span {

    display: block;

    color: #a1a1aa;

    font-size: 9px;

    margin-top: 5px;
}


/* =========================================================
   12. EMPTY STATES
   ========================================================= */

.empty-state,
.empty-cart {

    padding: 45px 20px;

    text-align: center;

    color: var(--muted);
}


.empty-state i,
.empty-cart i {

    color: #c4b5fd;

    font-size: 32px;

    margin-bottom: 12px;
}


.empty-state h4,
.empty-cart h3 {

    color: var(--text);

    font-size: 14px;

    margin-bottom: 4px;
}


.empty-state p,
.empty-cart p {

    font-size: 11px;
}


/* =========================================================
   13. CART
   ========================================================= */

.modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 3500;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transition: var(--transition);
}


.modal-overlay.open {

    opacity: 1;

    visibility: visible;
}


/* Cart coexists with shopping — no dimmed backdrop
   blocking the page, and clicks pass straight through
   to whatever's behind it except on the panel itself. */

.cart-overlay {

    position: fixed;

    inset: 0;

    z-index: 2000;

    pointer-events: none;

    visibility: hidden;

    overflow: hidden;

}


.cart-overlay.open {

    visibility: visible;
}


/* Profile & Orders are full pages, not drawers */

.profile-overlay,
.orders-overlay {

    display: none;
}

.profile-overlay.open {

    display: block;

    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.orders-overlay.open {

    display: block;

    position: fixed;
    inset: 0;
    z-index: 3000;
    background: white;
    overflow-y: auto;
    padding: 0;
}

.orders-overlay .orders-panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}


@media (min-width: 900px) {

    body.cart-open #mainContent {

        padding-right: 430px;

        transition: padding-right 0.3s ease;

        box-sizing: border-box;

    }

}


/* Cart panel */

.cart-panel {

    position: absolute;

    top: 0;

    right: 0;

    height: 100%;

    width: 430px;

    max-width: 100%;

    background: var(--white);

    display: flex;

    flex-direction: column;

    transform: translateX(100%);

    transition: 0.3s ease;

    pointer-events: auto;

    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}


.cart-overlay.open .cart-panel {

    transform: translateX(0);
}


.cart-header {

    padding: 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}


.cart-header h2 {

    font-size: 20px;

    margin-bottom: 2px;
}


.cart-header p {

    color: var(--muted);

    font-size: 11px;
}


.close-cart {

    width: 38px;

    height: 38px;

    border: none;

    background: #f4f4f5;

    border-radius: 50%;

    color: var(--muted);
}


.cart-items {

    flex: 1;

    overflow-y: auto;

    padding: 20px;
}


.cart-item {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}


.cart-item-image {

    width: 60px;

    height: 60px;

    border-radius: 9px;

    background: var(--purple-soft);

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--purple);
}


.cart-item-info h3 {

    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    text-decoration: none;
}


.cart-item-price {

    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 10px;
}


.quantity-controls {

    display: flex;
    align-items: center;
    gap: 10px;
}


.quantity-button {

    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: var(--text);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-button:hover {
    border-color: var(--purple);
    color: var(--purple);
}


.quantity-controls strong {

    min-width: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}


.remove-item {

    margin-left: auto;
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    text-decoration: none;
}

.remove-item:hover {
    text-decoration: underline;
}


.cart-item > strong {

    align-self: flex-start;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}


.cart-item-image i {
    font-size: 20px;
}


.cart-item-info {

    flex: 1;
}


.cart-item-info h4 {

    font-size: 13px;

    margin-bottom: 4px;
}


.cart-item-info span {

    color: var(--purple);

    font-size: 12px;

    font-weight: 700;
}


.cart-quantity {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 8px;
}


.cart-quantity button {

    width: 25px;

    height: 25px;

    border: 1px solid var(--border);

    background: var(--white);

    border-radius: 5px;
}


.cart-quantity span {

    color: var(--text);

    font-size: 11px;
}


/* Cart footer */

.cart-footer {

    padding: 20px;

    border-top: 1px solid var(--border);

    background: var(--white);
}


.cart-total {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 15px;
}


.cart-total span {

    color: var(--muted);

    font-size: 13px;
}


.cart-total strong {

    color: var(--black);

    font-size: 22px;
}


.checkout-button {

    width: 100%;

    border: none;

    background: var(--purple);

    color: var(--white);

    padding: 14px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;
}


.checkout-button:hover {

    background: var(--purple-dark);
}


/* =========================================================
   MY PROFILE PANEL
   ========================================================= */

.profile-panel {

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 16px;

    display: flex;

    flex-direction: column;
}


.profile-panel-header {

    padding: 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}


.profile-panel-header h2 {

    font-size: 20px;

    margin-bottom: 2px;
}


.profile-panel-header p {

    color: var(--muted);

    font-size: 11px;
}


.profile-panel-body {

    flex: 1;

    overflow-y: auto;

    padding: 24px 22px;
}


/* Avatar block */

.profile-avatar-block {

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 26px;
}


.profile-avatar-circle {

    position: relative;

    width: 68px;
    height: 68px;
    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        var(--purple),
        var(--purple-light)
    );

    color: var(--white);

    font-size: 26px;

    box-shadow: 0 0 0 4px var(--purple-soft);
}


.profile-avatar-circle img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Small camera badge shown in edit mode */

.profile-avatar-edit-badge {

    position: absolute;

    bottom: 0;

    right: 0;

    width: 24px;
    height: 24px;

    display: none;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--purple-dark);

    color: var(--white);

    font-size: 10px;

    border: 2px solid var(--white);

    cursor: pointer;
}


.profile-panel.editing .profile-avatar-edit-badge {

    display: flex;
}


.profile-avatar-info h3 {

    font-size: 18px;

    font-weight: 800;

    color: var(--text);

    margin-bottom: 6px;
}


.profile-status-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 4px 10px;

    border-radius: 50px;

    background: #dcfce7;

    color: #16a34a;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.3px;
}


.profile-status-badge::before {

    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #16a34a;
}


/* Field list (view mode) */

.profile-field-list {

    display: flex;

    flex-direction: column;
}


.profile-field {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 14px 0;

    border-bottom: 1px solid #f1f1f1;
}


.profile-field:last-child {

    border-bottom: none;
}


.profile-field-label {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--muted);

    font-size: 13px;

    font-weight: 600;
}


.profile-field-label i {

    width: 16px;

    color: #a78bfa;

    font-size: 13px;

    text-align: center;
}


.profile-field-value {

    color: var(--text);

    font-size: 13px;

    font-weight: 700;

    text-align: right;

    max-width: 60%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* Editable fields (edit mode) — only phone and DOB */

.profile-field-editable {

    display: none;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 10px 0;

    border-bottom: 1px solid #f1f1f1;
}


.profile-field-editable label {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--muted);

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;
}


.profile-field-editable label i {

    width: 16px;

    color: #a78bfa;

    font-size: 13px;

    text-align: center;
}


.profile-field-editable input {

    width: 60%;

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 8px 10px;

    outline: none;

    font-size: 13px;

    font-family: inherit;

    color: var(--text);

    text-align: right;
}


.profile-field-editable input:focus {

    border-color: var(--purple);

    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.08);
}


/* Panel switches between view mode and edit mode.
   Everything below is driven off one class,
   .profile-panel.editing, added by JS. */

.profile-panel.editing .profile-field.editable-field {

    display: none;
}


.profile-panel.editing .profile-field-editable {

    display: flex;
}


/* "Edit" button (view mode only) */

.profile-edit-actions {

    display: flex;

    justify-content: flex-end;

    margin-bottom: 18px;
}


.profile-panel.editing .profile-edit-actions {

    display: none;
}


.profile-edit-button {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    border: 1px solid var(--border);

    background: var(--white);

    color: var(--text);

    padding: 8px 14px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);
}


.profile-edit-button:hover {

    border-color: var(--purple);

    color: var(--purple);
}


/* Save / Cancel footer (edit mode only) */

.profile-panel-footer {

    padding: 18px 22px;

    border-top: 1px solid var(--border);

    display: none;

    gap: 10px;
}


.profile-panel.editing .profile-panel-footer {

    display: flex;
}


.profile-save-button {

    flex: 1;

    border: none;

    background: var(--purple);

    color: var(--white);

    padding: 12px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);
}


.profile-save-button:hover {

    background: var(--purple-dark);
}


.profile-save-button:disabled {

    opacity: 0.6;

    cursor: not-allowed;
}


.profile-cancel-button {

    flex: 1;

    border: 1px solid var(--border);

    background: var(--white);

    color: var(--text);

    padding: 12px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);
}


.profile-cancel-button:hover {

    border-color: #d4d4d8;

    background: #fafafa;
}


/* Note */

.profile-note {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 24px;

    padding: 14px;

    border-radius: 12px;

    background: #faf7ff;

    color: #7c6a94;

    font-size: 12px;

    line-height: 1.6;
}


.profile-panel.editing .profile-note {

    display: none;
}


.profile-note i {

    margin-top: 1px;

    color: #a78bfa;
}


/* =========================================================
   MY ORDERS PANEL
   ========================================================= */

.orders-panel {

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 16px;

    display: flex;

    flex-direction: column;
}


.orders-panel-header {

    padding: 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}


.orders-panel-header h2 {

    font-size: 20px;

    margin-bottom: 2px;
}


.orders-panel-header p {

    color: var(--muted);

    font-size: 11px;
}


.orders-panel-body {

    flex: 1;

    overflow-y: auto;

    padding: 20px 22px;
}


/* Order card */

.order-card {

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 16px;

    margin-bottom: 14px;
}


.order-card-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}


.order-card-reference {

    font-size: 11px;

    font-weight: 700;

    color: var(--muted);

    letter-spacing: 0.3px;
}


.order-card-date {

    font-size: 11px;

    color: #a1a1aa;

    margin-top: 3px;
}


.order-status-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 4px 10px;

    border-radius: 50px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.3px;

    white-space: nowrap;
}


.order-status-badge::before {

    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
}


.order-status-badge.status-paid {

    background: #dcfce7;

    color: #16a34a;
}


.order-status-badge.status-paid::before {

    background: #16a34a;
}


.order-status-badge.status-pending {

    background: #fef9c3;

    color: #b45309;
}


.order-status-badge.status-pending::before {

    background: #b45309;
}


.order-status-badge.status-failed {

    background: #fee2e2;

    color: #dc2626;
}


.order-status-badge.status-failed::before {

    background: #dc2626;
}


.order-card-items {

    display: flex;

    flex-direction: column;

    gap: 6px;

    margin-bottom: 12px;

    padding-bottom: 12px;

    border-bottom: 1px solid #f1f1f1;
}


.order-card-item-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    font-size: 12px;

    color: var(--text);
}


.order-card-item-row span:first-child {

    color: var(--muted);
}


.order-card-total {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.order-card-total span {

    font-size: 12px;

    color: var(--muted);

    font-weight: 600;
}


.order-card-total strong {

    font-size: 15px;

    font-weight: 800;

    color: var(--text);
}


.order-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.order-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}

.order-action-btn.primary {
    background: var(--purple);
    color: white;
}

.order-action-btn.primary:hover {
    background: var(--purple-dark);
}

.order-action-btn.secondary {
    background: white;
    color: var(--text);
    border-color: var(--border);
}

.order-action-btn.secondary:hover {
    border-color: var(--purple-light);
    color: var(--purple);
}

.order-action-btn.danger {
    background: #fee2e2;
    color: #dc2626;
}

.order-action-btn.danger:hover {
    background: #dc2626;
    color: white;
}


/* =========================================================
   AUTH MODAL — COMPACT & RESPONSIVE
   ========================================================= */

.auth-modal {

    position: absolute;

    top: 50%;
    left: 50%;

    width: 410px;
    max-width: calc(100% - 30px);

    max-height: calc(100vh - 30px);

    /* The screen you can actually see — on phones 100vh also counts
       the space behind the browser's address bar. */
    max-height: calc(100dvh - 30px);

    overflow-y: auto;

    box-sizing: border-box;

    padding: 25px;

    background: var(--white);

    border-radius: 16px;

    box-shadow: var(--shadow-large);

    transform: translate(-50%, -50%);

    transition: var(--transition);
}


.modal-overlay.open .auth-modal {

    transform: translate(-50%, -50%);

}


.auth-modal > .modal-close {

    position: absolute;

    top: 17px;

    right: 17px;
}


.auth-header {

    text-align: center;

    margin-bottom: 25px;
}


.auth-icon {

    width: 52px;

    height: 52px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--purple-soft);

    color: var(--purple);

    border-radius: 50%;

    font-size: 19px;
}


.auth-header h2 {

    font-size: 23px;

    margin-bottom: 5px;
}


.auth-header p {

    color: var(--muted);

    font-size: 12px;
}


/* Centers titles/subtitles across every payment and
   confirmation modal, whether or not it uses the
   .auth-header wrapper — many payment modals place their
   icon/h2/p directly inside .auth-modal instead. */

.auth-modal h2 {

    text-align: center;
}

.auth-modal > p {

    text-align: center;
}


/* Form */

.form-group {

    margin-bottom: 17px;
}


.form-group label {

    display: block;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 7px;
}


/* PASSCODE REVEAL TOGGLE */

.passcode-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.passcode-label-row label {
    margin-bottom: 0;
}

.passcode-reveal-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
}

.passcode-reveal-btn:hover {
    color: var(--purple);
}


/* PASSWORD SHOW/HIDE TOGGLE */

.password-field-wrap {
    position: relative;
}

.password-field-wrap input {
    padding-right: 40px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.password-toggle-btn:hover {
    color: var(--purple);
}


.form-group input,
.form-group textarea,
.form-group select {

    width: 100%;

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 11px 12px;

    outline: none;

    font-size: 12px;

    color: var(--text);

    background: var(--white);

    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {

    border-color: var(--purple);

    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.08);
}


/* Form options */

.form-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin: 4px 0 20px;

    font-size: 10px;
}


.form-options label {

    display: flex;

    align-items: center;

    gap: 5px;

    color: var(--muted);
}


.form-options a,
.signup-prompt a {

    color: var(--purple);

    font-weight: 700;
}


/* Auth button */

.auth-button {

    width: 100%;

    border: none;

    background: var(--purple);

    color: var(--white);

    padding: 13px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;
}


.auth-button:hover {

    background: var(--purple-dark);
}


.signup-prompt {

    text-align: center;

    color: var(--muted);

    font-size: 11px;

    margin-top: 18px;
}


/* =========================================================
   15. BROADCAST MODAL
   ========================================================= */

.broadcast-modal {

    width: 500px;
}


/* =========================================================
   16. TOAST
   ========================================================= */

.toast {

    position: fixed;

    z-index: 3000;

    right: 25px;

    bottom: 25px;

    max-width: 350px;

    padding: 13px 17px;

    background: var(--black);

    color: var(--white);

    border-radius: 9px;

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 12px;

    box-shadow: var(--shadow-medium);

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition: var(--transition);
}


.toast.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.toast i {

    color: #c4b5fd;
}


/* =========================================================
   17. FOOTER
   ========================================================= */

.footer {

    background: #18121f;

    color: var(--white);

    padding-top: 55px;
}


.footer-container {

    display: grid;

    grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr;

    gap: 45px;

    padding-bottom: 45px;
}


/* Footer brand */

.footer-brand {

    max-width: 300px;
}


.footer-logo {

    width: 145px;

    margin-bottom: 18px;

    /* Helps transparent logos blend naturally */
    mix-blend-mode: screen;
}


.footer-brand h3 {

    font-size: 13px;

    letter-spacing: 1px;

    margin-bottom: 9px;
}


.footer-brand p {

    color: #c4c0c8;

    font-size: 11px;

    line-height: 1.7;

    margin-bottom: 10px;
}


.footer-brand .footer-tagline {

    color: #a9a2af;

    font-size: 10px;
}


/* Footer columns */

.footer-column h4 {

    font-size: 13px;

    margin-bottom: 8px;
}


.footer-title-line {

    width: 25px;

    height: 2px;

    background: var(--purple-light);

    margin-bottom: 17px;
}


.footer-column > a {

    display: flex;

    align-items: center;

    gap: 9px;

    color: #c4c0c8;

    font-size: 11px;

    margin-bottom: 11px;

    transition: var(--transition);
}


.footer-column > a:hover {

    color: var(--white);

    transform: translateX(3px);
}


.footer-column > a i {

    width: 15px;

    color: #a78bfa;
}


/* Footer location */

.footer-info {

    display: flex;

    gap: 10px;

    margin-bottom: 25px;
}


.footer-info > i {

    color: #a78bfa;

    margin-top: 3px;
}


.footer-info div {

    display: flex;

    flex-direction: column;
}


.footer-info strong {

    color: #d8d4dc;

    font-size: 11px;

    font-weight: 600;
}


.footer-info span {

    color: #99929f;

    font-size: 10px;
}


.footer-subheading {

    margin-top: 18px;
}


.why-footer-item {

    color: #bcb6c2;

    font-size: 10px;

    margin-bottom: 8px;

    display: flex;

    align-items: center;

    gap: 8px;
}


.why-footer-item i {

    color: #a78bfa;

    font-size: 10px;
}


.footer-contact-item {

    color: #bcb6c2;

    font-size: 10px;

    margin-bottom: 11px;

    display: flex;

    align-items: center;

    gap: 9px;
}


.footer-contact-item i {

    color: #a78bfa;
}


/* Social links */

.social-links {

    display: flex;

    gap: 8px;
}


.social-links a {

    width: 31px;

    height: 31px;

    border: 1px solid #3b3243;

    border-radius: 7px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #c4c0c8;

    transition: var(--transition);
}


.social-links a:hover {

    background: var(--purple);

    border-color: var(--purple);

    color: var(--white);

    transform: translateY(-2px);
}


/* Footer bottom */

.footer-bottom {

    width: min(1180px, 92%);

    margin: 0 auto;

    min-height: 65px;

    padding: 17px 0;

    border-top: 1px solid #302936;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    color: #8f8796;

    font-size: 9px;
}


.footer-policies {

    display: flex;

    align-items: center;

    gap: 8px;
}


.footer-policies a:hover {

    color: var(--white);
}


.footer-love {

    display: flex;

    align-items: center;

    gap: 5px;
}


.footer-love i {

    color: #a78bfa;
}


/* =========================================================
   18. HIDDEN ELEMENTS
   ========================================================= */

.hidden {

    display: none !important;
}


/* =========================================================
   19. RESPONSIVE DESIGN
   ========================================================= */


/* Tablets */

@media (max-width: 1000px) {


    .main-nav {

        gap: 18px;
    }


    .category-grid,
    .product-grid,
    .why-grid {

        grid-template-columns: repeat(2, 1fr);
    }


    .footer-container {

        grid-template-columns: repeat(2, 1fr);

        gap: 35px;
    }


    .chat-preview {

        grid-template-columns: 230px 1fr;
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 780px) {


    .main-nav {

        display: none;
    }


    .mobile-menu-button {

        display: flex;

        align-items: center;

        justify-content: center;
    }


    .mobile-menu.show {

        display: flex;
    }


    .signin-nav-button span:not(.header-avatar-circle):not(.header-avatar-initial) {

        display: none;
    }


    .signin-nav-button {

        width: 42px;

        height: 42px;

        padding: 0;

        justify-content: center;

        border-radius: 50%;
    }


    .hero {

        min-height: 520px;
    }


    .hero h1 {

        letter-spacing: -2px;
    }


    .rewards-container {

        flex-direction: column;

        align-items: flex-start;
    }


    .rewards-card {

        width: 100%;

        max-width: 280px;
    }


    /* Chat mobile layout is handled in the dedicated
       CHAT — MOBILE LAYOUT section further down, which
       correctly accounts for the app sidebar and profile
       panel added later. */

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {


    .nav-container {

        min-height: 68px;

        gap: 7px;
    }


    .nav-logo {

        width: 105px;
    }


    .nav-actions {

        gap: 5px;
    }


    .nav-icon-button,
    .signin-nav-button,
    .mobile-menu-button {

        width: 37px;

        height: 37px;
    }


    .hero-content {

        padding: 70px 0;
    }


    .hero h1 {

        font-size: 43px;

        letter-spacing: -2px;
    }


    .hero p {

        font-size: 17px;
    }


    .section {

        padding: 65px 0;
    }


    .category-grid,
    .product-grid,
    .why-grid {

        grid-template-columns: 1fr;
    }


    .category-card {

        padding: 20px;
    }


    .product-image {

        height: 230px;
    }


    .product-filters {

        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 5px;
    }


    .filter-button {

        flex-shrink: 0;
    }


    .rewards-section {

        padding: 60px 0;
    }


    .rewards-content h2 {

        font-size: 34px;
    }


    .chat-preview {

        min-height: 600px;

        border-radius: 14px;
    }


    .messages {

        padding: 17px;
    }


    .message {

        max-width: 85%;
    }


    .notification-panel {

        top: 75px;

        right: 10px;

        width: calc(100% - 20px);
    }


    .cart-panel {

        width: 100%;
    }


    .auth-modal {

        padding: 28px 20px;
    }


    .footer {

        padding-top: 45px;
    }


    .footer-container {

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .footer-brand {

        max-width: 100%;
    }


    .footer-bottom {

        flex-direction: column;

        align-items: flex-start;

        padding: 20px 0;

    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {


    .nav-logo {

        width: 90px;
    }


    .hero h1 {

        font-size: 37px;
    }


    .hero-buttons {

        flex-direction: column;

        align-items: stretch;
    }


    .primary-button,
    .secondary-button {

        width: 100%;
    }


    .product-bottom {

        align-items: flex-end;
    }


    .product-bottom strong {

        font-size: 14px;
    }


    .add-to-cart {

        padding: 8px 9px;
    }

}

/* =========================================
   KURIOS TOAST MESSAGE
========================================= */

.kurios-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);

    display: flex;
    align-items: center;
    gap: 12px;

    background: #ffffff;
    color: #1f2937;

    padding: 14px 20px 14px 16px;

    border-radius: 14px;

    border: 1px solid rgba(109, 40, 217, 0.12);

    box-shadow:
        0 20px 40px rgba(76, 29, 149, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.06);

    font-weight: 600;
    font-size: 14px;

    max-width: min(420px, calc(100vw - 40px));

    z-index: 99999;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.kurios-toast-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.kurios-toast.toast-error .kurios-toast-icon {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}


.kurios-toast.show {

    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);

}

/* =========================================
   CREATE STUDENT ACCOUNT BUTTON
========================================= */

.create-account-btn {
    width: 100%;
    max-width: 360px;
    height: 46px;

    margin: 8px auto 0;

    border: none;
    border-radius: 9px;

    background: linear-gradient(
        135deg,
        #6d28d9,
        #7c3aed
    );

    color: #ffffff;

    padding: 0 18px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    cursor: pointer;

    box-shadow:
        0 6px 15px rgba(109, 40, 217, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* User icon */

.create-account-btn i:first-child {
    font-size: 15px;
}


/* Arrow */

.create-account-btn i:last-child {
    font-size: 15px;
    margin-left: 2px;

    transition: transform 0.2s ease;
}


/* =========================================
   HOVER EFFECT
========================================= */

.create-account-btn:hover {
    background: linear-gradient(
        135deg,
        #5b21b6,
        #6d28d9
    );

    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(109, 40, 217, 0.30);
}


/* Arrow moves when hovering */

.create-account-btn:hover i:last-child {
    transform: translateX(5px);
}


/* =========================================
   CLICK EFFECT
========================================= */

.create-account-btn:active {
    transform: scale(0.97);

    box-shadow:
        0 4px 10px rgba(109, 40, 217, 0.20);
}


/* =========================================
   FOCUS EFFECT
========================================= */

.create-account-btn:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.25);
    outline-offset: 3px;
}


/* =========================================
   DISABLED STATE
========================================= */

.create-account-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* =========================================
   PROFESSIONAL SIGNUP CHECKBOXES
========================================= */

#signupForm .form-checkbox {
    width: 100%;
    margin-bottom: 10px;
}


/* Checkbox + text */

#signupForm .form-checkbox label {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.5;

    color: #4b5563;

    cursor: pointer;

    transition: color 0.2s ease;
}


/* Checkbox itself */

#signupForm .form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;

    min-width: 16px;

    margin: 2px 0 0 0;

    accent-color: #6d28d9;

    cursor: pointer;
}


/* Hover */

#signupForm .form-checkbox label:hover {
    color: #252525;
}


/* Keyboard focus */

#signupForm .form-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(109, 40, 217, 0.35);
    outline-offset: 2px;
}


/* Checked text */

#signupForm .form-checkbox input[type="checkbox"]:checked + * {
    color: #374151;
}

/* =========================================
   SIGNUP MODAL - HIDDEN SCROLLBAR
========================================= */

#signUpModal .auth-modal {
    scrollbar-width: none;
}

#signUpModal .auth-modal::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

#signUpModal .auth-modal.is-scrolling {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 100, 100, 0.45) transparent;
}

#signUpModal .auth-modal.is-scrolling::-webkit-scrollbar {
    width: 5px;
}

#signUpModal .auth-modal.is-scrolling::-webkit-scrollbar-track {
    background: transparent;
}

#signUpModal .auth-modal.is-scrolling::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.45);
    border-radius: 10px;
}

/* =====================================================
   KURIOS STORES - OTP VERIFICATION DESIGN
===================================================== */

#otpVerificationScreen {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 0;
}


/* OTP HEADER */

.otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.otp-header h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1f2937;
}

.otp-header p {
    margin: 0 auto;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
}

.otp-email-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-weight: 600;
}


/* OTP INPUT SECTION */

.otp-input-section {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}


/* SIX OTP BOXES — underline style */

.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 22px;
}

.otp-digit {
    width: 44px;
    height: 56px;

    padding: 0;

    border: none;
    border-bottom: 3px solid #e5e0f5;
    border-radius: 0;

    background: transparent;

    text-align: center;

    font-size: 26px;
    font-weight: 700;

    color: #1f2937;

    outline: none;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* ACTIVE OTP BOX */

.otp-digit:focus {
    border-color: var(--purple);
    transform: translateY(-2px);
}

.otp-digit:not(:placeholder-shown) {
    border-color: var(--purple-light);
}


.otp-status-message {
    min-height: 18px;
    margin: -8px 0 16px;

    font-size: 13px;
    font-weight: 600;
    text-align: center;

    color: var(--purple-dark);
}


.coming-soon-panel {
    text-align: center;
    padding: 60px 30px;
}

.coming-soon-panel i {
    font-size: 40px;
    color: var(--purple-light);
    margin-bottom: 16px;
    display: block;
}

.coming-soon-panel h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.coming-soon-panel p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}


/* SELLER — FULL PAGE (not a drawer) */

.full-page-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

#shopPage.full-page-section {
    max-width: none;
    width: 100%;
    padding-left: 4%;
    padding-right: 4%;
    background: var(--light-background);
}

#storefrontPage.full-page-section {
    max-width: none;
    width: 100%;
    padding-left: 4%;
    padding-right: 4%;
    background: var(--light-background);
}

.storefront-banner {
    max-width: 1280px;
    margin: 0 auto 32px;
}

.storefront-products-label {
    max-width: 1280px;
    margin: 0 auto 20px;
}

.storefront-grid {
    width: min(1280px, 100%);
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

#shopPage .full-page-back-row {
    padding-top: 20px;
}

.full-page-back-row {
    margin-bottom: 20px;
}

.full-page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #6b7280);
}

.full-page-back-link:hover {
    color: var(--purple);
}

.full-page-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.full-page-panel .close-cart {
    display: none;
}

@media (max-width: 600px) {

    .full-page-section {
        padding: 20px 16px 60px;
    }

    .full-page-panel {
        padding: 20px;
        border-radius: 12px;
    }

}


/* STOREFRONT HEADER */

.storefront-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.storefront-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    background: var(--purple-soft);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    overflow: hidden;
}

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

.storefront-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.storefront-header p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}


/* OPAY BUTTON */

.opay-button {
    background: #1a9c5b;
}

.opay-button:hover {
    background: #147d49;
}

.paystack-button {
    background: #00c3f7;
}

.paystack-button:hover {
    background: #00a8d6;
}


/* DASHBOARD CHOICE MODAL */

/* POST-LOGIN SPLASH */

.post-login-splash {
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple) 55%, var(--purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-login-splash-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.post-login-splash-pattern i {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 48px;
}

.post-login-splash-pattern i:nth-child(1) { top: 6%; left: 8%; font-size: 32px; transform: rotate(-15deg); }
.post-login-splash-pattern i:nth-child(2) { top: 14%; left: 82%; font-size: 60px; transform: rotate(20deg); }
.post-login-splash-pattern i:nth-child(3) { top: 30%; left: 30%; font-size: 26px; transform: rotate(40deg); }
.post-login-splash-pattern i:nth-child(4) { top: 22%; left: 55%; font-size: 40px; transform: rotate(-30deg); }
.post-login-splash-pattern i:nth-child(5) { top: 48%; left: 5%; font-size: 50px; transform: rotate(10deg); }
.post-login-splash-pattern i:nth-child(6) { top: 60%; left: 90%; font-size: 34px; transform: rotate(-40deg); }
.post-login-splash-pattern i:nth-child(7) { top: 68%; left: 18%; font-size: 44px; transform: rotate(25deg); }
.post-login-splash-pattern i:nth-child(8) { top: 78%; left: 60%; font-size: 30px; transform: rotate(-10deg); }
.post-login-splash-pattern i:nth-child(9) { top: 85%; left: 38%; font-size: 55px; transform: rotate(15deg); }
.post-login-splash-pattern i:nth-child(10) { top: 5%; left: 45%; font-size: 22px; transform: rotate(-25deg); }
.post-login-splash-pattern i:nth-child(11) { top: 40%; left: 72%; font-size: 36px; transform: rotate(35deg); }
.post-login-splash-pattern i:nth-child(12) { top: 90%; left: 8%; font-size: 28px; transform: rotate(-20deg); }
.post-login-splash-pattern i:nth-child(13) { top: 12%; left: 65%; font-size: 24px; transform: rotate(5deg); }
.post-login-splash-pattern i:nth-child(14) { top: 55%; left: 45%; font-size: 20px; transform: rotate(-35deg); }
.post-login-splash-pattern i:nth-child(15) { top: 35%; left: 12%; font-size: 38px; transform: rotate(45deg); }
.post-login-splash-pattern i:nth-child(16) { top: 72%; left: 80%; font-size: 46px; transform: rotate(-5deg); }
.post-login-splash-pattern i:nth-child(17) { top: 95%; left: 70%; font-size: 32px; transform: rotate(30deg); }
.post-login-splash-pattern i:nth-child(18) { top: 2%; left: 25%; font-size: 42px; transform: rotate(-45deg); }

.post-login-splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.post-login-splash-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 18px;
    animation: postLoginSplashPulse 1.6s ease-in-out infinite;
}

.post-login-splash-content p {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

@keyframes postLoginSplashPulse {

    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }

}


.dashboard-choice-modal {
    text-align: center;
}

.dashboard-choice-modal p {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 20px;
}

.dashboard-choice-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.dashboard-choice-card:hover {
    border-color: var(--purple);
    background: var(--purple-soft);
}

.dashboard-choice-card > i {
    color: #9ca3af;
    font-size: 12px;
}

.dashboard-choice-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: var(--purple-soft);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dashboard-choice-card div strong {
    display: block;
    font-size: 13px;
    color: #111827;
    margin-bottom: 2px;
}

.dashboard-choice-card div span {
    font-size: 11px;
    color: #9ca3af;
}


/* =========================================================
   SELLER DASHBOARD (tabbed, sidebar layout)
   ========================================================= */

#sellerPage.seller-dashboard-active {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #f8fafb;
    padding: 0;
    max-width: none;
    margin: 0;
    overflow-y: auto;
    /* Smooth, self-contained scrolling on phones (the page behind
       doesn't scroll instead once the dashboard reaches its end). */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

#sellerPage.seller-dashboard-active .ks-seller-app {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

.seller-dash-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
}

@media (max-width: 900px) {

    .seller-dash-layout {
        grid-template-columns: 1fr;
    }

}


/* SIDEBAR */

.seller-dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    align-self: flex-start;
    position: sticky;
    top: 90px;
}

@media (max-width: 900px) {

    .seller-dash-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
    }

}

.seller-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    text-align: left;
}

.seller-dash-nav-item i {
    width: 16px;
    text-align: center;
    color: #9ca3af;
}

.seller-dash-nav-item:hover {
    background: var(--purple-soft);
    color: var(--purple-dark);
}

.seller-dash-nav-item.active {
    background: var(--purple);
    color: white;
}

.seller-dash-nav-item.active i {
    color: white;
}


/* MAIN CONTENT */

.seller-dash-main {
    min-width: 0;
}


/* STAT CARDS */

.seller-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 1100px) {

    .seller-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 600px) {

    .seller-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

.seller-stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.seller-stat-value {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.seller-stat-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
}


/* PANELS ROW */

.seller-dash-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 900px) {

    .seller-dash-row {
        grid-template-columns: 1fr;
    }

}

.seller-dash-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.seller-dash-panel-header {
    margin-bottom: 14px;
}

.seller-dash-panel-header h3 {
    font-size: 14px;
    margin: 0;
    color: #111827;
}


/* SALES CHART (custom SVG bars) */

.seller-sales-chart {
    height: 160px;
    padding-top: 10px;
}

.seller-sales-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.seller-chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.seller-chart-bar {
    width: 100%;
    max-width: 32px;
    background: linear-gradient(180deg, var(--purple-light), var(--purple));
    border-radius: 6px 6px 0 0;
    min-height: 3px;
    transition: opacity 0.15s ease;
}

.seller-chart-bar:hover {
    opacity: 0.8;
}

.seller-chart-bar-label {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
}


/* ORDER STATUS BREAKDOWN */

.seller-donut-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.seller-donut,
.ks-donut {
    width: 130px;
    height: 130px;
    min-width: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(var(--ks-hairline, #e5e7eb) 0deg 360deg);
}

.ks-donut::after {
    content: "";
    position: absolute;
    inset: 22px;
    background: var(--ks-surface, white);
    border-radius: 50%;
}

.ks-donut > div {
    position: relative;
    z-index: 2;
    text-align: center;
}

.ks-donut strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--ks-ink, #111827);
}

.ks-donut span {
    display: block;
    font-size: 10px;
    color: var(--ks-muted-soft, #9ca3af);
    margin-top: 2px;
}

.ks-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.seller-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.seller-status-row-label {
    flex: 1;
    font-size: 12px;
    color: var(--ks-muted, #6b7280);
    text-transform: capitalize;
    font-weight: 500;
}

.seller-status-row-count {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ks-ink, #111827);
}


/* TOP PRODUCTS LIST */

.seller-chart-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ks-muted-soft, #9ca3af);
    font-size: 12.5px;
}

.seller-chart-empty::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ks-purple-soft, #f3e8ff);
}

.seller-top-product-row-with-thumb {
    display: flex;
    align-items: center;
    gap: 11px;
}

.seller-top-product-thumb {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: var(--ks-purple-soft, var(--purple-soft));
    color: var(--ks-purple, var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 13px;
}

.seller-top-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-top-product-details {
    flex: 1;
    min-width: 0;
}

.seller-top-product-details span {
    display: block;
    font-size: 11px;
    color: var(--ks-muted-soft, #9ca3af);
    margin-top: 2px;
}


.seller-top-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--ks-hairline-soft, var(--border));
    font-size: 12px;
}

.seller-top-product-row:last-child {
    border-bottom: none;
}

.seller-top-product-row strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ks-ink, #111827);
}

.seller-top-product-qty {
    font-family: "Space Grotesk", sans-serif;
    color: #92400e;
    font-weight: 700;
    white-space: nowrap;
}


/* RECENT ORDERS TABLE */

.seller-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.seller-orders-table th {
    text-align: left;
    color: #9ca3af;
    font-weight: 600;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
}

.seller-orders-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    color: #374151;
}

.seller-orders-table tr:last-child td {
    border-bottom: none;
}

.seller-order-status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.seller-order-status-pill.paid {
    background: #dcfce7;
    color: #15803d;
}

.seller-order-status-pill.pending {
    background: #fef3c7;
    color: #b45309;
}

.seller-order-status-pill.failed {
    background: #fee2e2;
    color: #dc2626;
}


/* STORE LOGO */

.store-logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
    background: var(--ks-surface, #fff);
    border: 1px solid var(--ks-hairline, var(--border));
    border-radius: 14px;
    padding: 18px;
}

.store-logo-preview {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 15px;
    background: var(--ks-purple-soft, var(--purple-soft));
    color: var(--ks-purple, var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    overflow: hidden;
}

.store-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-logo-controls {
    flex: 1;
}

.store-logo-label {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ks-ink, inherit);
}

.store-logo-controls input[type="file"] {
    font-size: 12px;
}


/* SELLER DASHBOARD */

.seller-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 16px;
}

.seller-dashboard-header h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--ks-ink, inherit);
}

.seller-dashboard-add-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: var(--ks-purple, var(--purple));
    color: white;
    border-radius: 9px;
    padding: 9px 15px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease;
}

.seller-dashboard-add-button:hover {
    background: var(--ks-purple-dark, var(--purple-dark));
}

.seller-dashboard-secondary-button {
    background: var(--ks-surface, var(--white));
    color: var(--ks-purple, var(--purple));
    border: 1px solid var(--ks-purple-soft, var(--purple));
}

.seller-dashboard-secondary-button:hover {
    background: var(--ks-purple-soft, var(--purple-soft));
}

/* WALLET PAGE */

.wallet-balance-card {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 24px;
    color: white;
    text-align: center;
}

.wallet-balance-card span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-bottom: 8px;
}

.wallet-balance-card strong {
    font-size: 34px;
    font-weight: 800;
}

.student-wallet-card {
    background: linear-gradient(135deg, #059669, #047857);
    position: relative;
}

.wallet-topup-btn {
    margin-top: 14px;
    border: none;
    background: white;
    color: #047857;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.wallet-topup-btn:hover {
    background: #ecfdf5;
}

.wallet-topup-btn.secondary {
    color: var(--purple);
}

.wallet-topup-btn.secondary:hover {
    background: var(--purple-soft);
}

.bank-search-results {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 6px;
    display: none;
}

.bank-search-results.open {
    display: block;
}

.bank-search-result-item {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.bank-search-result-item:last-child {
    border-bottom: none;
}

.bank-search-result-item:hover {
    background: var(--purple-soft);
}

.cashout-account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 8px;
}

.cashout-account-card strong {
    display: block;
    font-size: 14px;
}

.cashout-account-card span {
    font-size: 12px;
    color: #6b7280;
}

.cashout-notice {
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 0 0 16px;
    line-height: 1.5;
}

.wallet-note {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin: -12px 0 20px;
}

.wallet-section-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.wallet-pay-button {
    background: #059669;
}

.wallet-pay-button:hover {
    background: #047857;
}

.wallet-transaction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.wallet-transaction-row:last-child {
    border-bottom: none;
}

.wallet-transaction-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.wallet-transaction-info span {
    font-size: 11px;
    color: #9ca3af;
}

.wallet-transaction-amount {
    font-size: 14px;
    font-weight: 800;
}

.wallet-transaction-amount.credit {
    color: #15803d;
}

.wallet-transaction-amount.debit {
    color: #dc2626;
}


/* SELLER SALES */

.seller-sales-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fffaf0, #fdf1de);
    border: 1px solid #f3dfb3;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.seller-sales-summary span {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.seller-sales-summary strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    color: #92400e;
    font-weight: 700;
}

.seller-sale-card {
    border: 1px solid var(--ks-hairline, var(--border));
    border-radius: 13px;
    padding: 15px 17px;
    margin-bottom: 10px;
    background: var(--ks-surface, #fff);
    transition: border-color 0.12s ease;
}

.seller-sale-card:hover {
    border-color: var(--ks-purple-soft, var(--purple-soft));
}

.seller-sale-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.seller-sale-card-top strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    color: var(--ks-ink, inherit);
}

.seller-sale-card-top span {
    font-size: 11px;
    color: var(--ks-muted-soft, #9ca3af);
}

.seller-sale-amount {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    white-space: nowrap;
}

.seller-sale-items {
    font-size: 12px;
    color: var(--ks-muted, #6b7280);
    line-height: 1.6;
}


.seller-product-card {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--ks-hairline, var(--border));
    border-radius: 13px;
    padding: 13px;
    margin-bottom: 10px;
    background: var(--ks-surface, #fff);
    transition: border-color 0.12s ease;
}

.seller-product-card:hover {
    border-color: var(--ks-purple-soft, var(--purple-soft));
}

.seller-product-thumb {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 12px;
    background: var(--ks-purple-soft, var(--purple-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ks-purple, var(--purple));
    font-size: 19px;
    overflow: hidden;
}

.seller-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-product-info {
    flex: 1;
    min-width: 0;
}

.seller-product-info h4 {
    margin: 0 0 3px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ks-ink, inherit);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-product-info p {
    margin: 0;
    font-size: 12px;
    color: var(--ks-muted, #6b7280);
}

.seller-product-inactive-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ks-red-soft, #fee2e2);
    color: var(--ks-red, #dc2626);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.seller-product-approval-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.seller-product-approval-tag.pending {
    background: #fef3c7;
    color: #b45309;
}

.seller-product-approval-tag.rejected {
    background: var(--ks-red-soft, #fee2e2);
    color: var(--ks-red, #dc2626);
}

.seller-product-info .seller-product-approval-note {
    margin-top: 4px;
    color: var(--ks-red, #dc2626);
}

.seller-product-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.discount-status-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.discount-status-none {
    background: #f3f4f6;
    color: #6b7280;
}

.discount-status-active {
    background: #dcfce7;
    color: #16a34a;
}

.discount-status-scheduled {
    background: #fef3c7;
    color: #b45309;
}

.discount-status-ended {
    background: #f3f4f6;
    color: #9ca3af;
}

.ad-status-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.ad-status-active {
    background: #ede9fe;
    color: var(--purple);
}

.ad-status-ended {
    background: #f3f4f6;
    color: #9ca3af;
}

.product-ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--purple);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

.ad-price-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #6b7280;
}

.ad-price-preview strong {
    color: var(--black);
    font-size: 18px;
}

.seller-product-actions button {
    border: 1px solid var(--ks-hairline, var(--border));
    background: var(--ks-surface, var(--white));
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 12px;
    color: var(--ks-muted, #6b7280);
    transition: border-color 0.12s ease, color 0.12s ease;
}

.seller-product-actions button:hover {
    border-color: var(--ks-purple, var(--purple));
    color: var(--ks-purple, var(--purple));
}

.seller-dashboard-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.seller-dashboard-form-actions button {
    flex: 1;
}


/* PRODUCT CARD — SELLER ATTRIBUTION */

/* REVIEW PROMPTS */

.review-prompt-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--purple-soft);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.review-prompt-thumb {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
}

.review-prompt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-prompt-info {
    flex: 1;
    min-width: 0;
}

.review-prompt-info strong {
    display: block;
    font-size: 12px;
    color: var(--purple-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-star-picker {
    display: flex;
    gap: 2px;
}

.review-star-picker i {
    font-size: 15px;
    color: #d1d5db;
    cursor: pointer;
}

.review-star-picker i.active {
    color: #f59e0b;
}


.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    margin: 2px 0;
}

.product-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

.product-price-original {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-price-discounted {
    color: #ef4444;
}

.product-rating i {
    color: #f59e0b;
    font-size: 11px;
}

.product-rating-count {
    font-weight: 500;
    color: #9ca3af;
}


.product-sold-by {
    display: block;
    font-size: 11px;
    color: var(--purple);
    font-weight: 600;
    margin: 2px 0 6px;
    cursor: pointer;
}

.product-sold-by:hover {
    text-decoration: underline;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}


/* SELLER TYPE CARD PICKER */

.seller-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.seller-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.seller-type-card i {
    font-size: 16px;
    color: #9ca3af;
}

.seller-type-card span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.seller-type-card:hover {
    border-color: var(--purple-light);
}

.seller-type-card.active {
    border-color: var(--purple);
    background: var(--purple-soft);
}

.seller-type-card.active i {
    color: var(--purple);
}


/* FORM SECTION LABEL */

.form-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 16px;
    margin-bottom: 4px;
    border-top: 1px solid var(--border);
}


/* TWO-COLUMN FORM ROW */

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {

    .form-row-2 {
        grid-template-columns: 1fr;
    }

}


/* STYLED SELECT */

.select-wrap {
    position: relative;
}

.select-wrap select {

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;

    border: 1px solid var(--border);
    border-radius: 8px;

    padding: 11px 34px 11px 12px;

    outline: none;

    font-size: 12px;
    font-family: inherit;
    color: var(--text);

    background: var(--white);

    cursor: pointer;

}

.select-wrap select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.08);
}

.select-wrap-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #9ca3af;
    pointer-events: none;
}


/* SELLER FEE NOTICE */

.seller-fee-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 14px;
    border-radius: 10px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-size: 12px;
    line-height: 1.6;
}

.seller-fee-note i {
    margin-top: 2px;
    font-size: 13px;
}


/* PASSCODE MISMATCH */

.passcode-mismatch-message {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
}


/* RESET PASSCODE INTRO */

.reset-passcode-intro {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    text-align: center;
}


/* SIGN IN — EMAIL/PHONE TABS */

.signin-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
}

.signin-tab {
    border: none;
    background: transparent;
    padding: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #9ca3af;
    cursor: pointer;
}

.signin-tab.active {
    color: var(--text);
}

.signin-tabs-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: var(--border);
    margin-bottom: 20px;
}

.signin-tabs-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--purple);
    transition: left 0.2s ease;
}

.signin-tabs-indicator.tab-phone {
    left: 50%;
}


/* PHONE INPUT GROUP */

.phone-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}

.phone-input-group:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.08);
}

.phone-country-code {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 11px 10px;
    border-right: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.phone-input-group input {
    flex: 1;
    min-width: 0;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.otp-expiry-countdown {
    margin: 0 0 16px;

    font-size: 13px;
    text-align: center;
    color: #9ca3af;
}

.otp-expiry-countdown span {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #6b7280;
}

.otp-expiry-countdown.otp-expiry-urgent span {
    color: var(--red, #dc2626);
}


/* RESEND COOLDOWN */

.otp-resend-cooldown {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #9ca3af;
}

.otp-verify-button {
    width: 100%;
    height: 54px;

    border: none;
    border-radius: 10px;

    background: var(--purple);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.otp-verify-button:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.otp-verify-button:active {
    transform: translateY(0);
}

.otp-verify-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}


/* BUTTON ARROW */

.otp-button-arrow {
    font-size: 14px;
}


/* RESEND */

.otp-resend-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;

    margin-top: 20px;

    font-size: 14px;
    color: #6b7280;
}

.otp-resend-button {
    border: none;
    background: transparent;

    color: var(--purple-dark);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    padding: 0;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.otp-resend-button:hover {
    color: var(--purple);
}


/* FOOTER NOTE — plain hairline, no panel */

.otp-footer-note {
    margin: 28px 0 0;
    padding-top: 18px;

    border-top: 1px solid #eee7fb;

    font-size: 13px;
    line-height: 1.6;
    color: #9ca3af;
    text-align: center;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .otp-input-container {
        gap: 8px;
    }

    .otp-digit {
        width: 38px;
        height: 50px;
        font-size: 22px;
    }

    .otp-header h2 {
        font-size: 22px;
    }

    .otp-header {
        margin-bottom: 20px;
    }

}

.stat-card-link {
    border: 1px solid #e5e7eb;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}


/* DASHBOARD SECTIONS */

.dashboard-section {
    margin-top: 32px;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dashboard-section-header h2 {
    font-size: 18px;
    margin: 0;
    color: #111827;
}

.dashboard-section-link {
    border: none;
    background: transparent;
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.dashboard-section-link:hover {
    color: var(--purple-dark);
}

.dashboard-empty-note {
    color: #9ca3af;
    font-size: 13px;
    background: white;
    border: 1px dashed #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.dashboard-order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
}

.dashboard-order-row-info {
    min-width: 0;
}

.dashboard-order-row-info strong {
    display: block;
    font-size: 13px;
    color: #111827;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-order-row-info span {
    font-size: 12px;
    color: #9ca3af;
}

.dashboard-order-row-right {
    text-align: right;
    flex-shrink: 0;
}

.dashboard-order-row-right strong {
    display: block;
    font-size: 14px;
    color: #111827;
}

.dashboard-order-status {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-order-status.paid {
    background: #dcfce7;
    color: #15803d;
}

.dashboard-order-status.pending {
    background: #fef3c7;
    color: #b45309;
}

.dashboard-order-status.failed {
    background: #fee2e2;
    color: #dc2626;
}

.dashboard-recommend-grid {
    width: 100%;
    max-width: none;
    margin: 0;
}

@media (max-width: 900px) {

    .dashboard-recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   STUDENT ACCOUNT MENU
   ========================================================= */

.student-account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    width: 280px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.12);

    padding: 10px;

    z-index: 1000;

    display: none;

    animation: accountMenuOpen 0.18s ease;
}


/* OPEN STATE */

.student-account-menu.open {
    display: block;
}


/* =========================================================
   ACCOUNT HEADER
   ========================================================= */

.account-menu-header {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 10px 14px;
}


/* PROFILE ICON */

.account-menu-icon {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: #f0e7ff;

    color: #6d28d9;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 18px;

    flex-shrink: 0;
}


/* ACCOUNT INFORMATION */

.account-menu-info {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}


.account-menu-info strong {
    color: #111827;

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.account-menu-info span {
    color: #6b7280;

    font-size: 12px;

    white-space: normal;

    word-break: break-word;

    line-height: 1.4;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.account-menu-divider {
    height: 1px;

    background: #eeeeee;

    margin: 6px 4px;
}


/* =========================================================
   MENU BUTTONS
   ========================================================= */

.student-account-menu > button,
.account-menu-nav-link {
    width: 100%;

    border: none;

    background: transparent;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 10px;

    border-radius: 10px;

    cursor: pointer;

    color: #374151;

    font-family: inherit;

    font-size: 14px;

    font-weight: 500;

    text-align: left;

    text-decoration: none;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}


/* ICONS */

.student-account-menu > button i,
.account-menu-nav-link i {
    width: 20px;

    text-align: center;

    color: #6d28d9;

    font-size: 15px;
}


/* HOVER */

.student-account-menu > button:hover,
.account-menu-nav-link:hover {
    background: #f5f0ff;

    color: #5b21b6;
}


.student-account-menu > button:hover i,
.account-menu-nav-link:hover i {
    color: #6d28d9;
}


/* =========================================================
   WALLET
   ========================================================= */

#accountWallet {
    position: relative;
}


/* =========================================================
   SIGN OUT
   ========================================================= */

.student-account-menu .sign-out-button {
    color: #dc2626;

    margin-top: 2px;
}


.student-account-menu .sign-out-button i {
    color: #dc2626;
}


.student-account-menu .sign-out-button:hover {
    background: #fef2f2;

    color: #b91c1c;
}


.student-account-menu .sign-out-button:hover i {
    color: #b91c1c;
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes accountMenuOpen {

    from {
        opacity: 0;

        transform:
            translateY(-6px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

/* =========================================================
   KURIOS STORES
   LOGGED-IN STUDENT DASHBOARD
========================================================= */

.logged-in-dashboard {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   WELCOME AREA
========================================================= */

.dashboard-welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}


.welcome-content {
    flex: 1;
}


.welcome-content .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 16px;
    padding: 6px 14px 6px 8px;

    border-radius: 50px;

    background: #f3e8ff;
}


.welcome-content .hero-label i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #6d28d9;
    color: white;

    font-size: 10px;
}


.welcome-content h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 800;
    color: #111111;
}


.welcome-content h1 span {
    color: #6d28d9;
}


.welcome-content p {
    margin: 0 0 14px;
    font-size: 18px;
    color: #64748b;
}


.student-campus-info {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 24px;

    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}


.campus-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;

    border-radius: 50%;

    background: #16a34a;
}


.campus-info-divider {
    color: #d4d4d8;
}


.student-campus-info i {
    color: #a1a1aa;
    font-size: 13px;
}


.welcome-content .hero-buttons {
    margin-top: 4px;
}


.button-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;
    padding: 0 6px;

    border-radius: 50px;

    background: #ede9fe;
    color: #6d28d9;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   DASHBOARD STATS
========================================================= */

.dashboard-stats {
    display: flex;
    gap: 16px;
}


.stat-card {
    flex: 1;

    display: flex;
    align-items: center;
    gap: 14px;

    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;

    padding: 18px 20px;

    box-shadow: 0 8px 25px rgba(30, 20, 60, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.stat-card:hover {
    transform: translateY(-3px);

    border-color: #d8c7f5;

    box-shadow: 0 15px 35px rgba(30, 20, 60, 0.09);
}


.stat-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 17px;
}


.stat-card--wallet .stat-icon {
    background: #e0f2fe;
    color: #0284c7;
}


.stat-card--wishlist .stat-icon {
    background: #f3e8ff;
    color: #6d28d9;
}


.stat-card--rewards .stat-icon {
    background: #fef9c3;
    color: #b45309;
}


.stat-text {
    min-width: 0;
}


.stat-value {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
}


.stat-label {
    font-size: 13px;
    color: #64748b;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .dashboard-stats {
        flex-wrap: wrap;
    }


    .stat-card {
        min-width: calc(50% - 8px);
    }

}


@media (max-width: 650px) {

    .dashboard-welcome {
        align-items: flex-start;
    }


    .welcome-content h1 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }


    .welcome-content .hero-buttons {
        width: 100%;
    }


    .welcome-content .hero-buttons .primary-button,
    .welcome-content .hero-buttons .secondary-button {
        flex: 1;
        justify-content: center;
    }


    .dashboard-stats {
        flex-direction: column;
    }


    .stat-card {
        min-width: 100%;
    }

}

/* =========================================================
   KURIOS SELLER CENTER — "STOREFRONT"
   (a young entrepreneur's command center — confident,
   warm, and genuinely credible, since real money and a
   real business ride on it. Purple stays the brand
   thread throughout; a second, warmer gold voice is
   reserved specifically for earnings and growth, so it
   means something rather than decorating everything.)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

.ks-seller-app {
    --ks-base: #faf9fc;
    --ks-surface: #ffffff;
    --ks-ink: #1c1730;
    --ks-muted: #6b6480;
    --ks-muted-soft: #9a93ac;
    --ks-hairline: #ece8f4;
    --ks-hairline-soft: #f2effa;
    --ks-purple: #6d28d9;
    --ks-purple-dark: #4c1d95;
    --ks-purple-soft: #f3e8ff;
    --ks-gold: #c2740c;
    --ks-gold-soft: #fdf1de;
    --ks-green: #15803d;
    --ks-green-soft: #dcfce7;
    --ks-blue: #2563eb;
    --ks-blue-soft: #dbeafe;
    --ks-red: #dc2626;
    --ks-red-soft: #fee2e2;

    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: calc(100vh - 20px);
    background: var(--ks-base);
    border: 1px solid var(--ks-hairline);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(76, 29, 149, 0.10);
    margin: 0 auto;
    max-width: 1500px;
    color: var(--ks-ink);
    font-family: "Inter", sans-serif;
}

.ks-seller-app h1,
.ks-seller-app h2,
.ks-seller-app h3,
.ks-seller-app strong.ks-num,
.ks-metric-card strong,
.ks-donut-wrap strong,
.ks-seller-page-head h2,
.seller-dashboard-header h3 {
    font-family: "Space Grotesk", "Inter", sans-serif;
}


/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */

/* Positioned unconditionally (not just inside the mobile
   media query) so it's removed from grid flow on every
   screen size — otherwise, on desktop, this becomes a
   third, statically-positioned grid child alongside the
   sidebar and content, and CSS Grid auto-placement pushes
   the real sidebar into the wrong (wide) column entirely. */

.ks-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
}

.ks-seller-sidebar {
    background:
        radial-gradient(ellipse 420px 260px at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
        linear-gradient(165deg, #2e1065 0%, #4c1d95 48%, #6d28d9 100%);
    color: #fff;
    padding: 22px 14px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ks-seller-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 20px;
}

.ks-seller-brand-mark {
    font-size: 22px;
    color: #d8b4fe;
}

.ks-seller-brand strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.ks-seller-brand span {
    display: block;
    color: #c4a6f0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    margin-top: 2px;
}

.ks-seller-profile {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 2px 10px 18px;
}

.ks-seller-avatar,
.ks-user-avatar {
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--ks-purple-soft);
    color: var(--ks-purple);
}

.ks-seller-avatar {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 13px;
}

.ks-seller-avatar img,
.ks-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-seller-profile-copy strong {
    display: block;
    font-size: 13.5px;
    color: #fff;
    font-weight: 700;
}

.ks-seller-profile-copy span {
    font-size: 11px;
    color: #d3b8f5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ks-seller-profile-copy i {
    color: #4ade80;
}

.ks-seller-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ks-seller-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: #e6dcf7;
    padding: 10px 12px;
    border-radius: 9px;
    font: 600 12.5px/1.2 "Inter", sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    position: relative;
}

.ks-seller-nav-item i:first-child {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #b794e6;
}

.ks-seller-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ks-seller-nav-item.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.ks-seller-nav-item.active i:first-child {
    color: #fbbf24;
}

.ks-seller-nav-item.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 2px;
    background: #fbbf24;
}

.ks-seller-nav-item span {
    flex: 1;
}

.ks-nav-chevron {
    font-size: 10px !important;
    width: auto !important;
    color: #a78bc4 !important;
}

.ks-grow-card {
    position: relative;
    margin: 20px 0 14px;
    padding: 17px 16px;
    border-radius: 13px;
    background: linear-gradient(135deg, #d97706, #b45309);
    overflow: hidden;
}

.ks-grow-card strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: #fff;
}

.ks-grow-card p {
    font-size: 11.5px;
    line-height: 1.55;
    color: #fef3c7;
    margin: 7px 0 12px;
    max-width: 155px;
}

.ks-grow-card button {
    border: 0;
    background: #fff;
    color: #92400e;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.ks-grow-icon {
    position: absolute;
    right: 8px;
    bottom: 16px;
    font-size: 38px;
    transform: rotate(-16deg);
    opacity: 0.22;
    color: #fff;
}

.ks-help-card {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 10px 4px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: 9px;
    transition: background 0.12s ease;
}

.ks-help-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ks-help-card > i {
    font-size: 19px;
    color: #b794e6;
}

.ks-help-card strong,
.ks-help-card span {
    display: block;
}

.ks-help-card strong {
    font-size: 12px;
    color: #fff;
}

.ks-help-card span {
    font-size: 10.5px;
    color: #c4a6f0;
    margin-top: 2px;
}


/* ---------------------------------------------------------
   TOPBAR + PAGE HEAD
   --------------------------------------------------------- */

.ks-seller-content {
    min-width: 0;
    background: var(--ks-base);
}

.ks-seller-topbar {
    height: 68px;
    background: var(--ks-surface);
    border-bottom: 1px solid var(--ks-hairline);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 26px;
}

.ks-sidebar-toggle {
    border: 0;
    background: transparent;
    font-size: 18px;
    color: var(--ks-ink);
    cursor: pointer;
    display: none;
}

.ks-seller-search {
    width: min(340px, 42vw);
    height: 38px;
    border: 1px solid var(--ks-hairline);
    background: var(--ks-hairline-soft);
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    color: var(--ks-muted);
    margin-left: auto;
    transition: border-color 0.12s ease;
}

.ks-seller-search:focus-within {
    border-color: var(--ks-purple);
    background: var(--ks-surface);
}

.ks-seller-search input {
    border: 0;
    outline: 0;
    width: 100%;
    font: 500 12.5px "Inter", sans-serif;
    color: var(--ks-ink);
    background: transparent;
}

.ks-topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ks-icon-btn {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--ks-ink);
    font-size: 17px;
    cursor: pointer;
}

.ks-notification-dot {
    position: absolute;
    right: -1px;
    top: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px var(--ks-surface);
}

.ks-add-product-top {
    border: 0;
    background: var(--ks-purple);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: background 0.12s ease;
}

.ks-add-product-top:hover {
    background: var(--ks-purple-dark);
}

.ks-user-menu {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ks-ink);
    cursor: pointer;
}

.ks-user-avatar {
    width: 32px;
    height: 32px;
}

.ks-seller-page-head {
    padding: 26px 28px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.ks-seller-page-head h2 {
    font-size: 25px;
    line-height: 1.2;
    margin: 0 0 5px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--ks-ink);
}

.ks-seller-page-head p {
    margin: 0;
    color: var(--ks-muted);
    font-size: 13px;
}

.ks-wave {
    font-size: 21px;
}

.ks-seller-app .seller-dash-tab {
    padding: 0 28px 30px;
}


/* ---------------------------------------------------------
   METRICS — a real hero figure, not five equal boxes
   --------------------------------------------------------- */

.ks-metric-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.ks-metric-card {
    background: var(--ks-surface);
    border: 1px solid var(--ks-hairline);
    border-radius: 14px;
    padding: 18px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    transition: border-color 0.12s ease;
}

.ks-metric-card:hover {
    border-color: var(--ks-purple-soft);
}

/* The first card (Total Sales) is the hero — larger figure,
   the gold "earnings" voice, and a filled background so it
   visually leads the row rather than sitting equal to the rest. */

.ks-metric-grid .ks-metric-card:first-child {
    grid-column: span 1;
    background: linear-gradient(135deg, #fffaf0, #fdf1de);
    border-color: #f3dfb3;
}

.ks-metric-grid .ks-metric-card:first-child .ks-metric-icon {
    background: var(--ks-gold);
    color: #fff;
}

.ks-metric-grid .ks-metric-card:first-child strong {
    font-size: 21px;
    color: #92400e;
}

.ks-metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none;
    font-size: 15px;
}

.ks-metric-icon.sales { background: var(--ks-gold-soft); color: var(--ks-gold); }
.ks-metric-icon.orders { background: var(--ks-blue-soft); color: var(--ks-blue); }
.ks-metric-icon.customers { background: var(--ks-purple-soft); color: var(--ks-purple); }
.ks-metric-icon.products { background: #ffe8d5; color: #c2540c; }
.ks-metric-icon.rating { background: #fff2bd; color: #a16a00; }

.ks-metric-card span {
    display: block;
    color: var(--ks-muted);
    font-size: 11.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.ks-metric-card strong {
    display: block;
    color: var(--ks-ink);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}


/* ---------------------------------------------------------
   PANELS
   --------------------------------------------------------- */

.ks-dashboard-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.ks-dashboard-grid-top {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr) minmax(250px, 1.08fr);
}

.ks-dashboard-grid-bottom {
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.72fr);
}

.ks-panel {
    background: var(--ks-surface);
    border: 1px solid var(--ks-hairline);
    border-radius: 14px;
    padding: 19px 20px;
    min-width: 0;
    overflow: hidden;
}

.ks-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ks-panel-head h3 {
    font-size: 14px;
    margin: 0;
    font-weight: 700;
    color: var(--ks-ink);
}

.ks-panel-head p {
    margin: 3px 0 0;
    color: var(--ks-muted-soft);
    font-size: 11px;
}

.ks-panel-head button {
    border: 0;
    background: transparent;
    color: var(--ks-purple);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.ks-line-chart {
    height: 200px;
    position: relative;
}

.ks-line-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ks-donut-wrap {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 200px;
}

.ks-top-product {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--ks-hairline-soft);
}

.ks-top-product:last-child {
    border-bottom: 0;
}

.ks-recent-orders {
    min-height: 230px;
}

.ks-recent-orders .seller-orders-table {
    font-size: 11px;
}

.ks-recent-orders .seller-orders-table th {
    font-size: 10px;
    background: var(--ks-hairline-soft);
    color: var(--ks-muted);
    padding: 10px 8px;
    font-weight: 700;
}

.ks-recent-orders .seller-orders-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--ks-hairline-soft);
    color: var(--ks-ink);
}

.ks-recent-orders .seller-orders-table td:nth-child(4) {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #92400e;
}

.ks-performance-list > div {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ks-hairline-soft);
    font-size: 11px;
}

.ks-performance-list > div:last-child {
    border-bottom: 0;
}

.ks-performance-list i {
    font-size: 16px;
    color: var(--ks-purple);
}

/* Wallet Balance specifically — a money figure gets the
   same gold voice as every other earnings figure in this
   dashboard, rather than the generic purple used for the
   other three, non-monetary rows. */

.ks-performance-list > div:first-child i {
    color: var(--ks-gold);
}

.ks-performance-list > div:first-child strong {
    color: #92400e;
}

.ks-performance-list span {
    color: var(--ks-muted);
    font-weight: 500;
}

.ks-performance-list strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--ks-ink);
    font-weight: 700;
}

.ks-seller-app .seller-dashboard-header {
    margin-bottom: 16px;
}

.ks-seller-app .seller-dashboard-header h3 {
    font-weight: 700;
    color: var(--ks-ink);
}


/* ---------------------------------------------------------
   PRODUCT FORM (scoped override — the global .form-group
   rules stay untouched, since they're shared across 75+
   forms throughout the rest of the app. This only changes
   how a form looks specifically inside the seller dashboard.)
   --------------------------------------------------------- */

#sellerProductFormWrap {
    background: var(--ks-surface);
    border: 1px solid var(--ks-hairline);
    border-radius: 16px;
    padding: 22px 24px;
    margin-top: 18px;
}

.ks-seller-app .form-section-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ks-ink);
    margin-bottom: 4px;
}

.ks-seller-app .form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ks-muted);
    margin-bottom: 8px;
}

.ks-seller-app .form-group input,
.ks-seller-app .form-group textarea,
.ks-seller-app .form-group select {
    border: 1px solid var(--ks-hairline);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13px;
    background: var(--ks-base);
    color: var(--ks-ink);
    transition: border-color 0.12s ease, background 0.12s ease;
}

.ks-seller-app .form-group input:focus,
.ks-seller-app .form-group textarea:focus,
.ks-seller-app .form-group select:focus {
    border-color: var(--ks-purple);
    background: var(--ks-surface);
    box-shadow: 0 0 0 3px var(--ks-purple-soft);
}

.ks-seller-app .select-wrap select {
    width: 100%;
    padding: 11px 34px 11px 13px;
}

.ks-seller-app .select-wrap-arrow {
    color: var(--ks-muted-soft);
}

.ks-seller-app .coming-soon-panel {
    background: var(--ks-surface);
    border: 1px solid var(--ks-hairline);
    border-radius: 16px;
    padding: 64px 30px;
}

.ks-seller-app .coming-soon-panel i {
    color: var(--ks-purple-soft);
    font-size: 34px;
}

.ks-seller-app .coming-soon-panel h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    color: var(--ks-ink);
}

.ks-seller-app .coming-soon-panel p {
    color: var(--ks-muted);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.6;
}

.ks-seller-app .profile-save-button {
    background: var(--ks-purple);
    border-radius: 9px;
    font-weight: 700;
}

.ks-seller-app .profile-save-button:hover {
    background: var(--ks-purple-dark);
}

.ks-seller-app .profile-cancel-button {
    border-radius: 9px;
    border-color: var(--ks-hairline);
    color: var(--ks-muted);
}


/* ---------------------------------------------------------
   EMPTY / LOADING STATES
   (the shared .reset-passcode-intro is just a bare line of
   gray text — fine as a default, but not something worth
   leaving as-is in a dashboard meant to feel considered.
   This scoped version gives it real presence: a card, an
   icon, and enough breathing room that "nothing here yet"
   reads as a deliberate design decision, not a placeholder.)
   --------------------------------------------------------- */

.ks-seller-app .reset-passcode-intro {
    background: var(--ks-surface);
    border: 1px dashed var(--ks-hairline);
    border-radius: 14px;
    padding: 34px 20px;
    margin: 4px 0 20px;
    color: var(--ks-muted-soft);
    font-size: 13px;
}

.ks-seller-app .reset-passcode-intro::before {
    content: "";
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--ks-purple-soft);
}

#sellerStatsLoading::before,
#sellerProductsLoading::before,
#sellerSalesLoading::before {
    background: transparent;
    border: 3px solid var(--ks-hairline);
    border-top-color: var(--ks-purple);
    animation: ks-spin 0.8s linear infinite;
}

@keyframes ks-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


@media (max-width: 1180px) {
    .ks-metric-grid { grid-template-columns: repeat(3, 1fr); }
    .ks-metric-grid .ks-metric-card:first-child { grid-column: span 3; }
    .ks-dashboard-grid-top { grid-template-columns: 1.3fr 1fr; }
    .ks-top-products { grid-column: 1 / -1; }
    .ks-seller-app { grid-template-columns: 224px minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .ks-sidebar-toggle { display: block; }
    .ks-seller-app { grid-template-columns: 1fr; border-radius: 0; margin: 0; }
    .ks-sidebar-backdrop {
        background: rgba(28, 23, 48, 0.45);
        transition: opacity 0.2s ease;
    }
    .ks-seller-app.sidebar-open .ks-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    .ks-seller-sidebar {
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        bottom: 0;
        width: 252px;
        transform: translateX(-102%);
        transition: transform 0.2s ease;
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.18);
    }
    .ks-seller-app.sidebar-open .ks-seller-sidebar { transform: translateX(0); }
    .ks-seller-content { width: 100%; }
    .ks-seller-topbar { padding: 0 16px; }
    .ks-seller-search { width: 34vw; }
    .ks-topbar-actions { gap: 10px; }
    .ks-user-menu > span:not(.ks-user-avatar) { display: none; }
    .ks-seller-page-head { padding: 18px 16px 14px; }
    .ks-seller-app .seller-dash-tab { padding: 0 16px 20px; }
    .ks-dashboard-grid-top,
    .ks-dashboard-grid-bottom { grid-template-columns: 1fr; }
    .ks-top-products { grid-column: auto; }
    .ks-donut-wrap { justify-content: center; }
}

@media (max-width: 620px) {
    .ks-seller-search { display: none; }
    .ks-add-product-top { font-size: 0; padding: 10px 11px; }
    .ks-add-product-top i { font-size: 12px; }
    .ks-seller-page-head { align-items: flex-start; flex-direction: column; }
    .ks-metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ks-metric-grid .ks-metric-card:first-child { grid-column: span 2; }
    .ks-metric-card { min-height: 86px; padding: 13px 12px; }
    .ks-metric-card strong { font-size: 15px; }
    .ks-metric-icon { width: 36px; height: 36px; }
    .ks-panel { padding: 15px; }
    .ks-line-chart { height: 180px; }
    .ks-donut-wrap { flex-direction: column; }
    .ks-recent-orders { overflow: auto; }
    .ks-recent-orders .seller-orders-table { min-width: 560px; }
}


/* Strip the old application-form chrome for the dashboard view */
#sellerPage.seller-dashboard-active .full-page-back-row,
#sellerPage.seller-dashboard-active .full-page-panel>.profile-panel-header{display:none}
#sellerPage.seller-dashboard-active .full-page-panel{padding:0;border:0;background:transparent;border-radius:0}


/* =========================================================
   CHAT — MOBILE LAYOUT
   (single-column, list-or-conversation, with a
   working back button — not two cramped columns)
   ========================================================= */

@media (min-width: 781px) {

    .chat-back-button {
        display: none !important;
    }

}


/* =========================================================
   CHAT — APP SIDEBAR (matches reference mockup)
   ========================================================= */

.chat-app-sidebar {
    background: #fbfaff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    min-height: 0;
    overflow-y: auto;
}

.chat-app-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.chat-app-brand i {
    font-size: 18px;
    color: var(--purple);
}

.chat-app-brand strong {
    display: block;
    font-size: 13px;
    line-height: 1;
    color: var(--purple-dark);
}

.chat-app-brand span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--purple);
}

.chat-app-newchat-btn {
    border: none;
    background: var(--purple);
    color: white;
    border-radius: 9px;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    margin-bottom: 14px;
}

.chat-app-newchat-btn:hover {
    background: var(--purple-dark);
}

.chat-app-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-app-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.chat-app-nav-item i {
    width: 15px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.chat-app-nav-item:hover {
    background: var(--purple-soft);
    color: var(--purple-dark);
}

.chat-app-nav-item.active {
    background: var(--purple-soft);
    color: var(--purple-dark);
}

.chat-app-nav-item.active i {
    color: var(--purple);
}

.chat-app-nav-item.soon {
    color: #9ca3af;
}

.soon-pill {
    margin-left: auto;
    background: #fef3c7;
    color: #b45309;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.chat-app-sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.chat-app-sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple-soft);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-app-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-app-sidebar-footer strong {
    display: block;
    font-size: 11px;
    color: #111827;
}

.chat-app-sidebar-footer span {
    display: block;
    font-size: 10px;
    color: #9ca3af;
}


/* FILTER PILLS */

.chat-contact-support-btn {
    width: calc(100% - 32px);
    margin: 0 16px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed var(--purple-light);
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.chat-contact-support-btn:hover {
    background: var(--purple);
    color: white;
    border-style: solid;
}

.chat-filter-pills {
    display: flex;
    gap: 6px;
    padding: 0 16px 14px;
    flex-wrap: wrap;
}

.chat-filter-pill {
    border: 1px solid var(--border);
    background: white;
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-filter-pill:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.chat-filter-pill.active {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

.chat-filter-pill.soon {
    color: #9ca3af;
}

.chat-filter-pill .soon-pill {
    margin-left: 0;
}


/* HEADER ACTIONS (call / video / more) */

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.chat-header-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #9ca3af;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.chat-header-icon-btn:hover {
    background: var(--purple-soft);
    color: var(--purple);
}


/* MESSAGE INPUT ICON BUTTONS */

.chat-input-icon-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 15px;
    width: 32px;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-input-icon-btn:hover {
    color: var(--purple);
}


/* PROFILE PANEL */

.chat-profile-panel {
    border-left: 1px solid var(--border);
    padding: 24px 18px;
    overflow-y: auto;
    text-align: center;
}

.chat-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--purple-soft);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.chat-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-profile-panel strong {
    display: block;
    font-size: 14px;
    color: #111827;
    margin-bottom: 6px;
}

.chat-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.chat-profile-university {
    font-size: 11px;
    color: #9ca3af;
    margin: 0 0 18px;
}

.chat-profile-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 22px;
}

.chat-profile-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 4px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    color: var(--purple-dark);
}

.chat-profile-action i {
    font-size: 13px;
    color: var(--purple);
}

.chat-profile-action:hover {
    background: var(--purple-soft);
}

.chat-profile-action.soon {
    color: #9ca3af;
}

.chat-profile-action.soon i {
    color: #9ca3af;
}

.chat-profile-section {
    text-align: left;
    margin-bottom: 16px;
}

.chat-profile-section h4 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin: 0 0 10px;
}

.chat-profile-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #374151;
    padding: 6px 0;
}

.chat-profile-info-row i {
    width: 14px;
    color: var(--purple);
}

.chat-profile-list-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    border-radius: 6px;
}

.chat-profile-list-item:hover {
    background: #f9fafb;
}

.chat-profile-list-item.danger {
    color: #dc2626;
}

.chat-profile-list-item .soon-pill {
    margin-left: auto;
}


@media (max-width: 1180px) {

    .chat-preview,
    .chat-preview:not(.has-profile-panel) {
        grid-template-columns: 190px 280px minmax(0, 1fr);
    }

    .chat-profile-panel {
        display: none !important;
    }

}

@media (max-width: 780px) {

    .chat-app-sidebar {
        display: none;
    }

    .chat-full-page {
        padding: 0;
        max-width: 100%;
    }

    .chat-preview,
    .chat-preview:not(.has-profile-panel) {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .chat-sidebar {
        border-right: none;
    }

    /* By default show the list, hide the window.
       Adding .conversation-open flips this. */

    .chat-window {
        display: none;
    }

    #chatPreviewApp.conversation-open .chat-sidebar {
        display: none;
    }

    #chatPreviewApp.conversation-open .chat-window {
        display: flex;
    }

    .chat-back-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

}


/* =========================================================
   CHAT — FULL SCREEN + REMAINING MOCKUP DETAILS
   ========================================================= */

.chat-full-page {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: white;
    padding: 0;
    max-width: none;
    margin: 0;
}

.chat-full-page .chat-preview {
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.chat-exit-btn {
    margin-left: auto;
    color: #9ca3af;
    font-size: 13px;
    text-decoration: none;
    padding: 4px;
}

.chat-exit-btn:hover {
    color: var(--purple);
}

.chat-app-brand {
    display: flex;
    align-items: center;
}

.chat-view-profile-btn {
    margin-left: auto;
    border: 1px solid var(--purple);
    background: white;
    color: var(--purple);
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.chat-view-profile-btn:hover {
    background: var(--purple);
    color: white;
}

.chat-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1d5db;
    margin-left: 6px;
    vertical-align: middle;
}

.chat-status-dot.online {
    background: #22c55e;
}

.chat-contact-seller-tag {
    display: inline-block;
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.chat-contact-seller-tag.support {
    background: #dcfce7;
    color: #15803d;
}


#sellerPage.seller-dashboard-active .ks-seller-brand {
    display: flex;
    align-items: center;
}

.ks-seller-exit-btn {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-decoration: none;
    padding: 4px;
}

.ks-seller-exit-btn:hover {
    color: white;
}


/* =========================================================
   HEADER — REAL MOBILE RESPONSIVENESS
   (previously this only "worked" on phones because the
   whole page was incorrectly zoomed out to fit everything —
   now that that's fixed, the header needs to actually
   collapse for real, or its content gets clipped)
   ========================================================= */

@media (max-width: 900px) {

    .main-nav {
        display: none !important;
    }

    .nav-container {
        gap: 12px;
    }

    .nav-logo {
        width: 92px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-icon-button {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

}

@media (max-width: 480px) {

    .signin-nav-button span:not(.header-avatar-circle):not(.header-avatar-initial) {
        display: none;
    }

    .signin-nav-button:not(.has-avatar) {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .signin-nav-button i {
        margin: 0;
    }

}


/* =========================================================
   CHAT — EMOJI PICKER, ATTACHMENTS, VOICE NOTES
   ========================================================= */

.chat-emoji-picker {
    position: absolute;
    bottom: 74px;
    right: 16px;
    width: 280px;
    max-height: 220px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-large);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    z-index: 50;
}

.chat-emoji-picker button {
    border: none;
    background: transparent;
    font-size: 20px;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
}

.chat-emoji-picker button:hover {
    background: var(--purple-soft);
}

.chat-window {
    position: relative;
}


/* Recording bar */

.chat-recording-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    font-size: 12px;
    font-weight: 600;
    color: #b91c1c;
}

.chat-recording-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    animation: chatRecordingPulse 1s infinite;
}

@keyframes chatRecordingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-recording-cancel {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.chat-recording-send {
    border: none;
    background: var(--purple);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Attachment message rendering */

.message-image {
    max-width: 240px;
    border-radius: 12px;
    display: block;
    cursor: pointer;
}

.message-file-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    min-width: 180px;
}

.message-file-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--purple-soft);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-file-card strong {
    display: block;
    font-size: 12px;
    word-break: break-word;
}

.message-file-card span {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}

.message-voice-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
}

.message-voice-note audio {
    height: 34px;
    max-width: 220px;
}


/* =========================================================
   CHAT — REACTIONS & MESSAGE EDITING
   ========================================================= */

.message {
    position: relative;
}

.message-hover-actions {
    position: absolute;
    top: -14px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.message:hover .message-hover-actions {
    opacity: 1;
    pointer-events: auto;
}

/* :hover is unreliable on touch devices, so always show
   these on small/touch screens instead of hiding them
   behind a gesture that may never register. */

@media (hover: none), (max-width: 780px) {

    .message-hover-actions {
        opacity: 1;
        pointer-events: auto;
        position: static;
        margin-top: 4px;
        justify-content: flex-end;
    }

    .message.received .message-hover-actions {
        justify-content: flex-start;
    }

}

.message.sent .message-hover-actions {
    right: 0;
}

.message.received .message-hover-actions {
    left: 0;
}

.message-react-trigger,
.message-edit-trigger {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: #6b7280;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.message-react-trigger:hover,
.message-edit-trigger:hover {
    color: var(--purple);
    border-color: var(--purple-light);
}

.chat-reaction-popover {
    position: absolute;
    top: -46px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-large);
    padding: 6px 8px;
    display: flex;
    gap: 4px;
    z-index: 40;
}

.message.sent .chat-reaction-popover {
    right: 0;
}

.message.received .chat-reaction-popover {
    left: 0;
}

.chat-reaction-popover button {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
}

.chat-reaction-popover button:hover {
    background: var(--purple-soft);
    transform: scale(1.15);
}

.chat-reaction-more {
    color: #9ca3af;
    font-size: 13px !important;
    border-left: 1px solid var(--border);
    padding-left: 8px !important;
    margin-left: 2px;
}

.chat-reaction-more:hover {
    color: var(--purple) !important;
}

.message-reactions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.message-reaction-pill {
    border: 1px solid var(--border);
    background: white;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
}

.message-reaction-pill.mine {
    background: var(--purple-soft);
    border-color: var(--purple-light);
}

.message-seen-label {
    font-size: 10px;
    color: #9ca3af;
    text-align: right;
    margin-top: 2px;
}

.message-edited-label {
    font-style: italic;
    opacity: 0.7;
}

.message-edit-textarea {
    width: 100%;
    min-width: 180px;
    border: 1px solid var(--purple-light);
    border-radius: 8px;
    padding: 8px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
}

.message-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.message-edit-actions button {
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.message-edit-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.message-edit-save {
    background: var(--purple);
    color: white;
}


/* =========================================================
   ORDER CHECKOUT / EDIT MODALS
   ========================================================= */

.modal-close-text-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    cursor: pointer;
}

.modal-close-text-btn:hover {
    color: var(--purple);
}

.edit-order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.edit-order-item-row .edit-order-item-info {
    flex: 1;
    min-width: 0;
}

.edit-order-item-row .edit-order-item-info strong {
    display: block;
    font-size: 13px;
}

.edit-order-item-row .edit-order-item-info span {
    font-size: 11px;
    color: #9ca3af;
}

.edit-order-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-order-qty-controls button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 12px;
}

.edit-order-qty-controls button:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.edit-order-remove-btn {
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
}

.edit-order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   PRINTABLE ORDER RECEIPT
   ========================================================= */

.receipt-modal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 640px;
    width: calc(100% - 30px);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.receipt-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.receipt-modal-actions button {
    border: none;
    background: white;
    color: var(--text);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-small);
}

#receiptPrintBtn {
    background: var(--purple);
    color: white;
}

.receipt-sheet {
    background: white;
    border-radius: 12px;
    padding: 32px;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
}

.receipt-header {
    text-align: center;
    margin-bottom: 24px;
}

.receipt-logo {
    height: 48px;
    margin-bottom: 10px;
}

.receipt-header h1 {
    font-size: 20px;
    color: var(--purple-dark);
    letter-spacing: 0.05em;
    margin: 6px 0;
}

.receipt-header p {
    font-size: 12px;
    color: #6b7280;
}

.receipt-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: var(--purple-soft);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.receipt-info-grid span {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--purple-dark);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.receipt-info-grid strong {
    font-size: 13px;
    color: var(--text);
}

.receipt-status-pill {
    display: inline-block !important;
    background: var(--green, #15803d);
    color: white !important;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px !important;
}

.receipt-section {
    margin-bottom: 20px;
}

.receipt-section h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--purple-dark);
    margin: 0 0 8px;
}

.receipt-section p {
    font-size: 13px;
    margin: 2px 0;
    color: var(--text);
}

.receipt-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 12px;
}

.receipt-items-table thead th {
    background: var(--purple-dark);
    color: white;
    text-align: left;
    padding: 10px 12px;
    font-size: 10px;
    text-transform: uppercase;
}

.receipt-items-table thead th:nth-child(2),
.receipt-items-table thead th:nth-child(3),
.receipt-items-table thead th:nth-child(4) {
    text-align: right;
}

.receipt-items-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.receipt-items-table td:nth-child(2),
.receipt-items-table td:nth-child(3),
.receipt-items-table td:nth-child(4) {
    text-align: right;
}

.receipt-totals-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.receipt-payment-info p,
.receipt-totals p {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 6px 0;
}

.receipt-payment-info span,
.receipt-totals span {
    color: #6b7280;
}

.receipt-totals strong {
    color: var(--purple-dark);
    font-size: 16px;
}

.receipt-footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.receipt-footer p {
    font-size: 12px;
    margin: 2px 0;
    color: var(--text);
}

.receipt-footer-small {
    color: #9ca3af !important;
    font-size: 10px !important;
}

@media print {

    body * {
        visibility: hidden;
    }

    #receiptSheet, #receiptSheet * {
        visibility: visible;
    }

    /* visibility:hidden only hides content visually — it
       does NOT remove it from the page's layout, so the
       rest of the (invisible) homepage still occupies its
       full height above the receipt. Pinning the receipt
       with position:fixed escapes that entirely, so it
       doesn't matter how much invisible space sits above
       it — this is what actually keeps it to one page. */

    #receiptModal {
        position: static !important;
        inset: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: white !important;
    }

    .receipt-modal-wrapper {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: auto !important;
        max-height: none !important;
    }

    #receiptSheet {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        box-shadow: none !important;
        padding: 10mm !important;
        border-radius: 0 !important;
        background: white !important;
    }

    .receipt-modal-actions {
        display: none !important;
    }

    @page {
        size: A4;
        margin: 10mm;
    }

}


/* =========================================================
   SUPPORT POOL
   ========================================================= */

.support-pool-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 6px;
    margin-left: auto;
}

.support-pool-panel {
    grid-column: 2 / 4;
    padding: 20px;
    overflow-y: auto;
    background: #fcfcfc;
}

.support-pool-header {
    margin-bottom: 16px;
}

.support-pool-header h3 {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
}

.support-pool-header p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.support-pool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.support-pool-card-info strong {
    display: block;
    font-size: 13px;
}

.support-pool-card-info span {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-pool-claim-btn {
    border: none;
    background: var(--purple);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.support-pool-claim-btn:hover {
    background: var(--purple-dark);
}

.support-pool-claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.end-session-btn {
    border: 1px solid #15803d;
    background: #dcfce7;
    color: #15803d;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.end-session-btn:hover {
    background: #15803d;
    color: white;
}

.end-session-btn.close-ticket-btn {
    border-color: var(--border);
    background: #f3f4f6;
    color: #6b7280;
}

.end-session-btn.close-ticket-btn:hover {
    background: #4b5563;
    color: white;
    border-color: #4b5563;
}

.end-session-btn.transfer-ticket-btn {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.end-session-btn.transfer-ticket-btn:hover {
    background: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
}

.support-pool-claim-btn.continue {
    background: #b45309;
}

.support-pool-claim-btn.continue:hover {
    background: #92400e;
}


/* =========================================================
   SELLER PAYOUTS
   ========================================================= */

.payout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.payout-row-info strong {
    display: block;
    font-size: 13px;
}

.payout-row-info span {
    font-size: 11px;
    color: #9ca3af;
}

.payout-status-pill {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.payout-status-pill.pending {
    background: #fef3c7;
    color: #b45309;
}

.payout-status-pill.approved {
    background: #dbeafe;
    color: #1d4ed8;
}

.payout-status-pill.paid {
    background: #dcfce7;
    color: #15803d;
}

.payout-status-pill.rejected {
    background: #fee2e2;
    color: #dc2626;
}


/* =========================================================
   ERRANDS
   ========================================================= */

.errand-mode-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
}

.errand-mode-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.errand-mode-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.errand-mode-dot.active {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.errand-mode-status strong {
    display: block;
    font-size: 14px;
}

.errand-mode-status p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #9ca3af;
}

.errand-mode-toggle-btn {
    border: none;
    background: var(--purple);
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.errand-mode-toggle-btn.on {
    background: #f3f4f6;
    color: #374151;
}

.errand-duration-choice {
    background: var(--purple-soft);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 10px;
}

.errand-duration-choice p {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--purple-dark);
}

.errand-duration-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.errand-duration-btn {
    border: 1px solid var(--purple-light);
    background: white;
    color: var(--purple-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.errand-duration-btn:hover {
    background: var(--purple);
    color: white;
}

.errand-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.errand-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.errand-card-top h4 {
    margin: 0 0 2px;
    font-size: 14px;
}

.errand-card-top span {
    font-size: 11px;
    color: #9ca3af;
}

.errand-card-fee {
    font-size: 16px;
    font-weight: 800;
    color: var(--purple-dark);
}

.errand-card-route {
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 10px;
}

.errand-card-route i {
    color: var(--purple);
    width: 14px;
}

.errand-status-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
}

.errand-status-pill.available,
.errand-status-pill.open { background: #dbeafe; color: #1d4ed8; }
.errand-status-pill.accepted,
.errand-status-pill.assigned,
.errand-status-pill.in_progress { background: #fef3c7; color: #b45309; }
.errand-status-pill.completed { background: #dcfce7; color: #15803d; }
.errand-status-pill.cancelled,
.errand-status-pill.failed { background: #fee2e2; color: #dc2626; }
.errand-status-pill.expired { background: #f3f4f6; color: #78716c; }
.errand-status-pill.pending { background: #f3f4f6; color: #6b7280; }

.expiry-countdown {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    margin: 0 0 8px;
}

.expiry-countdown.expiry-urgent {
    color: #dc2626;
}

.errand-accept-btn {
    width: 100%;
    border: none;
    background: var(--purple);
    color: white;
    padding: 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
    display: block;
}

.errand-accept-btn:last-child {
    margin-bottom: 0;
}

.errand-accept-btn:hover {
    background: var(--purple-dark);
}


/* Errand execution flow additions */

.errand-otp-display {
    background: var(--purple-soft);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 10px;
    text-align: center;
}

.errand-otp-display span {
    display: block;
    font-size: 10px;
    color: var(--purple-dark);
    font-weight: 700;
    margin-bottom: 4px;
}

.errand-otp-display strong {
    font-size: 24px;
    letter-spacing: 8px;
    color: var(--purple-dark);
}

.errand-accept-btn.secondary {
    background: white;
    color: var(--purple);
    border: 1px solid var(--purple-light);
    margin-bottom: 8px;
}

.errand-accept-btn.secondary:hover {
    background: var(--purple-soft);
}

.errand-waiting-note {
    font-size: 11px;
    color: #b45309;
    background: #fef3c7;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 0 0 8px;
}

.errand-waiting-note.student-countered {
    color: var(--purple-dark);
    background: var(--purple-soft);
    font-weight: 700;
}


/* Errand/Craft registration banners */

.errand-register-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, var(--purple-soft), #ffffff);
    border: 1px dashed var(--purple-light);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.errand-register-banner.craft {
    background: linear-gradient(135deg, #fce7f3, #ffffff);
    border-color: #f9a8d4;
}

.errand-register-banner strong {
    display: block;
    font-size: 13px;
}

.errand-register-banner p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #6b7280;
}

.errand-mode-toggle-btn.craft {
    background: #db2777;
}

.craft-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.craft-skill-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

.craft-skill-checkbox input {
    width: 14px;
    height: 14px;
}


/* Craft-themed wallet-topup-btn variant */

.wallet-topup-btn.craft {
    background: #db2777;
    color: white;
}

.wallet-topup-btn.craft:hover {
    background: #be185d;
}

.craft-offer-row {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.craft-offer-row-info strong {
    display: block;
    font-size: 13px;
}

.craft-offer-row-info span {
    font-size: 11px;
    color: #9ca3af;
}

.offer-move-note {
    display: block;
    font-size: 11px;
    color: var(--purple);
    font-weight: 700;
    margin-top: 2px;
}

.offer-row-actions {
    display: flex;
    gap: 8px;
}

.craft-offer-approve-btn {
    border: none;
    background: #db2777;
    color: white;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
}

.craft-offer-approve-btn:hover {
    background: #be185d;
}

.offer-reject-btn {
    border: 1px solid var(--border);
    background: white;
    color: #6b7280;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.offer-reject-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.offer-counter-row {
    display: flex;
    gap: 8px;
}

.offer-counter-input {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
}

.offer-counter-btn {
    border: 1px solid var(--purple);
    background: white;
    color: var(--purple);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.offer-counter-btn:hover {
    background: var(--purple);
    color: white;
}


/* Rating stars */

.rating-star-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 18px;
}

.rating-star-btn {
    border: none;
    background: none;
    font-size: 28px;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.15s;
}

.rating-star-btn.selected {
    color: #f59e0b;
}


/* Pool sort controls */

.pool-sort-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pool-sort-pills {
    display: flex;
    gap: 6px;
}

.pool-sort-pill {
    border: 1px solid var(--border);
    background: white;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.pool-sort-pill.active {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}


/* Live GPS tracking map */

.tracking-modal {
    max-width: 420px;
}

#errandTrackingMap {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    margin: 12px 0;
    background: #f3f4f6;
}

.leaflet-marker-agent {
    background: var(--purple);
    border: 3px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.leaflet-marker-destination {
    color: #ef4444;
    font-size: 22px;
}


.errand-distance-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--purple-dark);
    background: var(--purple-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}


/* Cart delivery method selector */

.cart-delivery-section {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}

.delivery-method-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.delivery-method-option.active {
    border-color: var(--purple);
    background: var(--purple-soft);
}

.delivery-method-option input {
    width: 16px;
    height: 16px;
}

.delivery-method-option strong {
    display: block;
    font-size: 13px;
}

.delivery-method-option span {
    font-size: 11px;
    color: #6b7280;
}


/* Shop search + filters */

.shop-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.shop-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.shop-search-input-wrap i {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 13px;
}

.shop-search-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
}

.shop-filter-toggle-btn {
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.shop-filter-toggle-btn.active {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}

.shop-filters-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}

.shop-filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}


/* Custom confirm/alert dialog — replaces native browser dialogs */

.custom-dialog {
    text-align: center;
}

.custom-dialog-icon.danger {
    background: #fee2e2;
    color: #dc2626;
}

.custom-dialog-icon.info {
    background: var(--purple-soft);
    color: var(--purple);
}

.custom-dialog-message {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 4px 0 20px;
}

.custom-dialog-actions {
    display: flex;
    gap: 10px;
}

.custom-dialog-actions .modal-close-text-btn {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin: 0;
}

.custom-dialog-actions .auth-button {
    flex: 1;
    margin: 0;
}

.custom-dialog-actions.alert-only .auth-button {
    flex: 1;
}


.danger-button {
    background: #dc2626 !important;
}

.danger-button:hover {
    background: #b91c1c !important;
}


.errand-tracking-timer {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--purple);
    font-variant-numeric: tabular-nums;
    margin: 0 0 8px;
    letter-spacing: 1px;
}


.craft-in-progress-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--purple-soft);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.craft-timer {
    font-size: 18px;
    font-weight: 800;
    color: var(--purple-dark);
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   COOK ORDERS
   (cook-to-order button, seller badge, and the
   live tracker cards/steps used on both the
   student and seller sides)
   ========================================================= */

.cook-order-btn {

    border: none;

    background: var(--purple);

    color: var(--white);

    padding: 9px 12px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 800;

    display: flex;

    align-items: center;

    gap: 5px;

    transition: var(--transition);
}

.cook-order-btn:hover {

    background: var(--purple-dark, var(--purple));

    transform: translateY(-1px);
}


/* Sidebar nav badge, e.g. "3" on Cook Orders tab */

.ks-cook-orders-badge {

    margin-left: auto;

    min-width: 18px;

    height: 18px;

    padding: 0 5px;

    border-radius: 50px;

    background: var(--purple);

    color: var(--white);

    font-size: 10px;

    font-weight: 700;

    display: inline-flex;

    align-items: center;

    justify-content: center;
}


/* Checkbox label used on the "cook to order" toggle */

.ks-checkbox-label {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    font-size: 13px;

    line-height: 1.4;

    cursor: pointer;
}

.ks-checkbox-label input[type="checkbox"] {

    margin-top: 2px;

    width: 16px;

    height: 16px;

    accent-color: var(--purple);

    flex-shrink: 0;
}


/* Tracker card — used both for a student's own
   order and, in a slightly denser form, for a
   seller's incoming queue */

.cook-order-card {

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 14px 16px;

    margin-bottom: 12px;
}

.cook-order-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 4px;
}

.cook-order-card-header strong {

    font-size: 14px;
}

.cook-order-qty {

    font-size: 12px;

    font-weight: 700;

    color: var(--purple);

    background: var(--purple-soft);

    padding: 2px 8px;

    border-radius: 50px;
}

.cook-order-store {

    font-size: 12px;

    color: var(--text-light, #777);

    margin: 0 0 10px;
}

.cook-order-notes {

    font-size: 12px;

    font-style: italic;

    color: var(--text-light, #777);

    margin: 0 0 10px;
}

.cook-order-cancelled {

    font-size: 13px;

    font-weight: 600;

    color: #c0392b;

    margin: 0;
}


/* Progress steps */

.cook-order-steps {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 4px;
}

.cook-order-step {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    flex: 1;

    text-align: center;
}

.cook-order-step-dot {

    width: 12px;

    height: 12px;

    border-radius: 50%;

    background: var(--border);

    display: block;
}

.cook-order-step.done .cook-order-step-dot {

    background: var(--purple);
}

.cook-order-step.active .cook-order-step-dot {

    background: var(--purple);

    box-shadow: 0 0 0 4px var(--purple-soft);
}

.cook-order-step-label {

    font-size: 10px;

    font-weight: 700;

    color: var(--text-light, #999);
}

.cook-order-step.done .cook-order-step-label,
.cook-order-step.active .cook-order-step-label {

    color: var(--purple);
}


/* Seller-side card actions */

.cook-order-card-actions {

    display: flex;

    gap: 8px;

    margin-top: 4px;
}

.cook-order-action-btn {

    border: none;

    background: var(--purple);

    color: var(--white);

    padding: 8px 14px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;

    flex: 1;

    transition: var(--transition);
}

.cook-order-action-btn:hover {

    background: var(--purple-dark, var(--purple));
}

.cook-order-cancel-btn {

    border: 1px solid var(--border);

    background: var(--white);

    color: #c0392b;

    padding: 8px 14px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;

    transition: var(--transition);
}

.cook-order-cancel-btn:hover {

    background: #fdecea;

    border-color: #c0392b;
}

.cook-order-status-pill {

    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 50px;

    font-size: 11px;

    font-weight: 700;

    text-transform: capitalize;

    background: var(--purple-soft);

    color: var(--purple);
}

.cook-order-status-pill.picked_up {

    background: #e8f5e9;

    color: #2e7d32;
}

.cook-order-status-pill.cancelled {

    background: #fdecea;

    color: #c0392b;
}


/* Line-item rows inside a cook order card,
   e.g. "Indomie ×2" — used for both the
   student tracker and the seller's queue */

.cook-order-items {

    margin-bottom: 10px;
}

.cook-order-item-row {

    font-size: 12px;

    color: var(--text);

    padding: 2px 0;
}


/* Per-store groups inside the Cook Cart — each
   group is one seller's items plus its own
   notes field and "Proceed to Payment" button */

.cook-cart-group {

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 14px;

    margin-bottom: 14px;
}

.cook-cart-group-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 10px;

    font-size: 14px;
}

.cook-cart-group-header span {

    color: var(--purple);

    font-weight: 700;
}

.cook-cart-group-proceed {

    margin-top: 10px;

    width: 100%;
}


/* "Add another item" picker inside a Cook Cart
   store group */

.cook-cart-add-item-btn {

    width: 100%;

    background: var(--purple-soft);

    color: var(--purple);

    border: none;

    border-radius: 8px;

    padding: 9px 12px;

    font-size: 12px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin: 8px 0;

    transition: var(--transition);
}

.cook-cart-add-item-btn:hover {

    background: var(--purple);

    color: var(--white);
}

.cook-cart-add-item-options {

    background: var(--purple-soft);

    border-radius: 8px;

    padding: 8px 10px;

    margin-bottom: 8px;
}

.cook-cart-pick-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 6px 0;

    font-size: 12px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cook-cart-pick-row:last-child {

    border-bottom: none;
}

.cook-cart-pick-add-btn {

    border: none;

    background: var(--purple);

    color: var(--white);

    padding: 5px 12px;

    border-radius: 50px;

    font-size: 11px;

    font-weight: 700;

    flex-shrink: 0;
}


/* =========================================================
   PRODUCT PAGINATION
   ========================================================= */

.product-pagination {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 14px;

    margin: 32px 0 8px;
}

.product-pagination-row {

    display: flex;

    align-items: center;

    gap: 8px;
}

.product-page-nav {

    width: 34px;

    height: 34px;

    border-radius: 50%;

    border: 1px solid var(--border);

    background: var(--white);

    color: var(--text);

    display: flex;

    align-items: center;

    justify-content: center;

    transition: var(--transition);
}

.product-page-nav:hover:not(:disabled) {

    background: var(--purple-soft);

    color: var(--purple);
}

.product-page-nav:disabled {

    opacity: 0.4;

    cursor: not-allowed;
}

.product-page-numbers {

    display: flex;

    align-items: center;

    gap: 4px;
}

.product-page-btn {

    min-width: 32px;

    height: 32px;

    padding: 0 8px;

    border-radius: 8px;

    border: none;

    background: transparent;

    color: var(--text);

    font-size: 13px;

    font-weight: 600;

    transition: var(--transition);
}

.product-page-btn:hover {

    background: var(--purple-soft);
}

.product-page-btn.active {

    background: var(--purple);

    color: var(--white);
}

.product-page-ellipsis {

    color: var(--text-light, #999);

    padding: 0 2px;

    font-size: 13px;
}

.product-per-page-row {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12.5px;

    color: var(--text-light, #777);
}

.product-per-page-row select {

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 5px 8px;

    font-size: 12.5px;

    background: var(--white);

    color: var(--text);
}


/* =========================================================
   SELLER DASHBOARD — KWALLET TAB
   ========================================================= */

.ks-wallet-balance-card {

    background: var(--purple);

    color: var(--white);

    border-radius: 14px;

    padding: 20px 24px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    margin-bottom: 20px;
}

.ks-wallet-balance-card span {

    font-size: 12px;

    opacity: 0.85;
}

.ks-wallet-balance-card strong {

    font-size: 28px;

    font-weight: 800;
}

.ks-wallet-payout-form {

    max-width: 420px;
}


/* =========================================================
   SELLER DASHBOARD — MESSAGES TAB
   ========================================================= */

.ks-seller-messages-layout {

    display: flex;

    gap: 20px;

    min-height: 420px;
}

.ks-seller-conversations-pane {

    width: 280px;

    flex-shrink: 0;

    border-right: 1px solid var(--border);

    padding-right: 16px;

    max-height: 520px;

    overflow-y: auto;
}

.ks-seller-conversation-row {

    display: flex;

    flex-direction: column;

    gap: 2px;

    padding: 10px 12px;

    border-radius: 10px;

    cursor: pointer;

    margin-bottom: 4px;

    transition: var(--transition);

    position: relative;
}

.ks-seller-conversation-row:hover {

    background: var(--purple-soft);
}

.ks-seller-conversation-row.active {

    background: var(--purple-soft);
}

.ks-seller-conversation-row strong {

    font-size: 13.5px;
}

.ks-seller-conversation-row span {

    font-size: 12px;

    color: var(--text-light, #888);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.ks-seller-thread-pane {

    flex: 1;

    display: flex;

    flex-direction: column;
}

.ks-seller-thread-header {

    padding-bottom: 10px;

    margin-bottom: 10px;

    border-bottom: 1px solid var(--border);
}

.ks-seller-thread-messages {

    flex: 1;

    overflow-y: auto;

    max-height: 400px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 4px;
}

.ks-seller-thread-bubble {

    max-width: 70%;

    padding: 8px 12px;

    border-radius: 14px;

    font-size: 13.5px;

    line-height: 1.4;
}

.ks-seller-thread-bubble.mine {

    align-self: flex-end;

    background: var(--purple);

    color: var(--white);

    border-bottom-right-radius: 4px;
}

.ks-seller-thread-bubble.theirs {

    align-self: flex-start;

    background: var(--purple-soft);

    color: var(--text);

    border-bottom-left-radius: 4px;
}

.ks-seller-thread-input-row {

    display: flex;

    gap: 8px;

    margin-top: 12px;
}

.ks-seller-thread-input-row input {

    flex: 1;

    border: 1px solid var(--border);

    border-radius: 50px;

    padding: 10px 16px;

    font-size: 13.5px;
}

.ks-seller-thread-input-row button {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    border: none;

    background: var(--purple);

    color: var(--white);

    flex-shrink: 0;
}


/* Transaction / payout rows in the seller KWallet tab */

.wallet-tx-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid var(--border);
}

.wallet-tx-row:last-child {

    border-bottom: none;
}

.wallet-tx-row strong {

    display: block;

    font-size: 13.5px;

    text-transform: capitalize;
}

.wallet-tx-row span {

    display: block;

    font-size: 12px;

    color: var(--text-light, #888);

    text-transform: capitalize;
}

.wallet-tx-amount {

    font-size: 14px;

    font-weight: 700;

    flex-shrink: 0;
}


/* =========================================================
   PRODUCT PHOTO MATCHING (Pexels search)
   ========================================================= */

.ks-find-photo-btn {

    margin-top: 8px;

    width: 100%;

    background: var(--purple-soft);

    color: var(--purple);

    border: none;

    border-radius: 8px;

    padding: 9px 12px;

    font-size: 12.5px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    transition: var(--transition);
}

.ks-find-photo-btn:hover {

    background: var(--purple);

    color: var(--white);
}

#productPhotoSearchPanel {

    margin-top: 10px;

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 12px;
}

.ks-photo-search-row {

    display: flex;

    gap: 8px;
}

.ks-photo-search-row input {

    flex: 1;

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 8px 10px;

    font-size: 13px;
}

.ks-photo-search-row button {

    border: none;

    background: var(--purple);

    color: var(--white);

    padding: 8px 16px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 700;
}

.ks-photo-results-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;

    margin-top: 10px;
}

.ks-photo-result {

    border: 2px solid transparent;

    border-radius: 8px;

    overflow: hidden;

    padding: 0;

    aspect-ratio: 1;

    background: var(--purple-soft);

    transition: var(--transition);
}

.ks-photo-result:hover {

    border-color: var(--purple);
}

.ks-photo-result img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

.ks-photo-credit {

    grid-column: 1 / -1;

    font-size: 10.5px;

    color: var(--text-light, #999);

    text-align: right;

    margin: 4px 0 0;
}

#productAdoptedPhotoPreview {

    margin-top: 10px;

    display: flex;

    align-items: center;

    gap: 12px;
}

#productAdoptedPhotoPreview img {

    width: 64px;

    height: 64px;

    border-radius: 8px;

    object-fit: cover;
}

#productAdoptedPhotoPreview button {

    border: 1px solid var(--border);

    background: var(--white);

    color: #c0392b;

    padding: 6px 12px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;
}


/* Seller sidebar — Sign Out gets a distinct
   warning tone so it doesn't blend in with the
   regular navigation items */

.ks-seller-signout {

    color: #c0392b;
}

.ks-seller-signout:hover {

    background: #fdecea;

    color: #c0392b;
}


/* Seller sidebar — Dashboard row with a small
   Home icon button sitting beside it */

.ks-seller-nav-row {

    display: flex;

    align-items: center;

    gap: 4px;

    position: relative;
}

.ks-seller-nav-row-main {

    flex: 1;

    min-width: 0;

    /* Let its active-state bar (::before, positioned
       via left:-14px) anchor to the row instead of
       this button's own box — otherwise, since the
       home icon now sits to its left, the bar would
       land in the middle of the row instead of flush
       against the sidebar's true left edge like every
       other nav item's indicator. */

    position: static;

    /* No leading icon here anymore (the home icon
       already fills that role) — pull the left padding
       in by just enough that "Dashboard" lands at the
       exact same x-position other items' labels start
       at: 40px in, accounting for the home icon's 34px
       + the row's 4px gap already eating into that. */

    padding-left: 2px !important;
}

.ks-seller-home-icon-btn {

    flex-shrink: 0;

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: #b794e6;

    cursor: pointer;

    transition: background 0.12s ease, color 0.12s ease;
}

.ks-seller-home-icon-btn:hover {

    background: rgba(255, 255, 255, 0.08);

    color: #fff;
}

.ks-seller-home-icon-btn.active {

    color: #fbbf24;
}


/* Tier badge + next-tier progress line inside
   the rewards card */

.rewards-tier-badge {

    display: inline-block;

    margin-top: 10px;

    padding: 5px 14px;

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.18);

    font-size: 12px;

    font-weight: 700;

    color: #fff;
}

.rewards-next-tier {

    display: block;

    margin-top: 8px;

    font-size: 12px;

    color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   SELLER DASHBOARD — STAFF TAB
   ========================================================= */

.announce-form {

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.announce-form label {

    font-size: 12.5px;

    font-weight: 700;

    color: var(--text);
}

.announce-form input,
.announce-form select,
.announce-form textarea {

    width: 100%;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--text);

    padding: 10px 12px;

    font-size: 13.5px;
}

.admin-permissions-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

    gap: 8px;
}

.admin-permission-checkbox {

    display: flex;

    align-items: center;

    gap: 8px;

    background: var(--purple-soft);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 10px 12px;

    font-size: 12.5px;

    line-height: 1.3;

    cursor: pointer;

    transition: var(--transition);
}

.admin-permission-checkbox:hover {

    border-color: var(--purple);
}

.admin-permission-checkbox input {

    accent-color: var(--purple);

    width: 15px;

    height: 15px;

    flex-shrink: 0;
}

.admin-permission-checkbox span {

    font-weight: 600;
}

.admin-account-card {

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 12px;

    margin-bottom: 10px;

    overflow: hidden;
}

.admin-account-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 14px 16px;

    flex-wrap: wrap;
}

.admin-account-name-row {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

    margin-bottom: 2px;
}

.admin-account-info strong {

    font-size: 13.5px;
}

.admin-account-info span {

    display: block;

    font-size: 12px;

    color: var(--text-light, #888);
}

.admin-role-pill {

    display: inline-flex;

    align-items: center;

    padding: 3px 10px;

    border-radius: 50px;

    font-size: 10.5px;

    font-weight: 700;

    white-space: nowrap;
}

.admin-role-pill.super_admin {

    background: #e8f5e9;

    color: #2e7d32;
}

.admin-role-pill.admin {

    background: var(--purple-soft);

    color: var(--purple);
}

.staff-edit-panel {

    padding: 16px;

    border-top: 1px solid var(--border);

    background: #faf9fc;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.staff-edit-panel-label {

    font-size: 12.5px;

    font-weight: 700;

    color: var(--text);
}

.staff-edit-panel .auth-button {

    align-self: flex-start;

    padding: 9px 24px;
}

.admin-account-actions {

    display: flex;

    gap: 8px;
}


/* Fulfill action + badge on each seller sale card */

.seller-sale-fulfill-row {

    margin-top: 10px;

    padding-top: 10px;

    border-top: 1px solid var(--ks-hairline, var(--border));
}

.seller-sale-fulfill-row {
    flex-wrap: wrap;
    gap: 8px;
}

.seller-sale-ready-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    padding: 6px 10px;
    border-radius: 20px;
}

.cook-order-action-btn--ghost {
    background: transparent;
    color: var(--purple);
    border: 1.5px solid var(--purple);
}

.seller-sale-fulfilled-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 12px;

    font-weight: 700;

    color: #2e7d32;

    background: #e8f5e9;

    padding: 5px 12px;

    border-radius: 50px;
}


/* Banner shown on a storefront page when the viewer is
   its own owner or staff — makes "My Store" previews
   visually distinct from what a guest sees */

.storefront-owner-banner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    background: var(--purple);

    color: var(--white);

    padding: 12px 20px;

    border-radius: 12px;

    margin-bottom: 16px;

    font-size: 13.5px;

    font-weight: 700;
}

.storefront-owner-banner button {

    border: none;

    background: rgba(255, 255, 255, 0.18);

    color: var(--white);

    padding: 8px 16px;

    border-radius: 8px;

    font-size: 12.5px;

    font-weight: 700;

    display: flex;

    align-items: center;

    gap: 6px;

    flex-shrink: 0;

    transition: var(--transition);
}

.storefront-owner-banner button:hover {

    background: rgba(255, 255, 255, 0.3);
}


/* Order code shown beside the store name in the
   cook order tracker card */

.cook-order-code {

    display: block;

    font-size: 11px;

    color: var(--text-light, #888);

    font-weight: 600;

    margin-top: 2px;
}


/* =========================================================
   PWA INSTALL BANNERS
   ========================================================= */

.pwa-install-banner {

    position: fixed;

    left: 12px;

    right: 12px;

    bottom: 12px;

    z-index: 9999;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

    padding: 12px 14px;

    display: flex;

    align-items: center;

    gap: 12px;

    max-width: 420px;

    margin: 0 auto;

    animation: pwaBannerSlideUp 0.3s ease;
}

@keyframes pwaBannerSlideUp {

    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

}

.pwa-install-banner-icon img {

    width: 44px;

    height: 44px;

    border-radius: 12px;

    display: block;
}

.pwa-install-banner-text {

    flex: 1;

    min-width: 0;
}

.pwa-install-banner-text strong {

    display: block;

    font-size: 13.5px;

    margin-bottom: 2px;
}

.pwa-install-banner-text span {

    display: block;

    font-size: 12px;

    color: var(--text-light, #888);

    line-height: 1.4;
}

.pwa-install-banner-text i {

    font-size: 11px;
}

#pwaInstallButton {

    flex-shrink: 0;

    background: var(--purple);

    color: var(--white);

    border: none;

    padding: 9px 16px;

    border-radius: 8px;

    font-size: 12.5px;

    font-weight: 700;

    cursor: pointer;
}

#pwaInstallButton:hover {

    background: var(--purple-dark);
}

.pwa-install-banner button[id$="Dismiss"] {

    flex-shrink: 0;

    width: 28px;

    height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    background: transparent;

    color: var(--text-light, #888);

    cursor: pointer;

    font-size: 13px;
}

.pwa-install-banner button[id$="Dismiss"]:hover {

    color: var(--text);
}

@media (max-width: 480px) {

    .pwa-install-banner {

        flex-wrap: wrap;

    }

    .pwa-install-banner-text {

        order: 1;

        flex-basis: 100%;

    }

    #pwaInstallButton {

        order: 2;

        margin-left: 56px;

    }

}


/* =========================================================
   LEGAL PAGE — PRIVACY / TERMS / REFUNDS
   ========================================================= */

.legal-tabs {

    display: flex;

    gap: 6px;

    margin-bottom: 24px;

    border-bottom: 1px solid var(--border);

    overflow-x: auto;
}

.legal-tab {

    flex-shrink: 0;

    background: none;

    border: none;

    padding: 10px 16px;

    font-size: 13.5px;

    font-weight: 700;

    color: var(--text-light, #888);

    cursor: pointer;

    border-bottom: 2px solid transparent;

    transition: var(--transition);
}

.legal-tab:hover {

    color: var(--purple);
}

.legal-tab.active {

    color: var(--purple);

    border-bottom-color: var(--purple);
}

.legal-doc h2 {

    font-family: "Space Grotesk", sans-serif;

    font-size: 24px;

    margin-bottom: 4px;
}

.legal-updated {

    font-size: 12px;

    color: var(--text-light, #888);

    margin-bottom: 20px;
}

.legal-doc h3 {

    font-size: 15px;

    margin-top: 24px;

    margin-bottom: 8px;

    color: var(--purple-dark);
}

.legal-doc p {

    font-size: 13.5px;

    line-height: 1.7;

    color: var(--text);

    margin-bottom: 12px;
}

.legal-doc ul {

    margin: 0 0 12px 20px;

    padding: 0;
}

.legal-doc li {

    font-size: 13.5px;

    line-height: 1.7;

    color: var(--text);

    margin-bottom: 6px;
}

.legal-doc a {

    color: var(--purple);

    font-weight: 600;
}


/* =========================================================
   PROFILE PANEL — YOUR ACTIVITY STATS
   ========================================================= */

.profile-activity-section {

    margin: 20px 0;
}

.profile-activity-heading {

    font-size: 12.5px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.03em;

    color: var(--text-light, #888);

    margin-bottom: 10px;
}

.profile-activity-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));

    gap: 8px;
}

.profile-activity-card {

    background: var(--purple-soft);

    border-radius: 12px;

    padding: 14px 10px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;
}

.profile-activity-icon {

    width: 30px;

    height: 30px;

    border-radius: 50%;

    background: var(--white);

    color: var(--purple);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 13px;

    margin-bottom: 2px;
}

.profile-activity-card strong {

    font-size: 16px;

    font-weight: 800;

    color: var(--purple-dark);

    line-height: 1.1;
}

.profile-activity-card span {

    font-size: 10.5px;

    color: var(--text-light, #888);

    font-weight: 600;

    line-height: 1.3;
}


/* =========================================================
   CUSTOM FILE UPLOAD (replaces the raw browser file input)
   ========================================================= */

.ks-file-upload {

    position: relative;
}

.ks-file-upload-input {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

.ks-file-upload-label {

    display: flex;

    align-items: center;

    gap: 10px;

    border: 1.5px dashed var(--border);

    border-radius: 10px;

    padding: 14px 16px;

    cursor: pointer;

    background: var(--purple-soft);

    transition: var(--transition);
}

.ks-file-upload-label:hover {

    border-color: var(--purple);

    background: #f3ecfd;
}

.ks-file-upload-label i {

    font-size: 18px;

    color: var(--purple);

    flex-shrink: 0;
}

.ks-file-upload-text {

    font-size: 12.5px;

    font-weight: 600;

    color: var(--text);
}

.ks-file-upload-text small {

    display: block;

    font-weight: 500;

    color: var(--text-light, #888);

    font-size: 11px;

    margin-top: 2px;
}

.ks-file-upload-filename {

    display: block;

    margin-top: 8px;

    font-size: 12px;

    font-weight: 600;

    color: var(--purple-dark);
}

.ks-file-upload-filename:empty {

    display: none;
}

.ks-file-upload-filename i {

    margin-right: 5px;
}


/* =========================================================
   CUSTOM PAYMENT GATEWAY DROPDOWN
   (wraps the native <select class="payment-gateway-select">,
   which stays in the DOM — hidden — so all existing JS that
   reads its .value keeps working untouched)
   ========================================================= */

.ks-gateway-select-wrap {

    position: relative;
}

.ks-gateway-select-wrap select.payment-gateway-select {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

.ks-gateway-trigger {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    width: 100%;

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 11px 12px;

    background: var(--white);

    cursor: pointer;

    font-size: 12.5px;

    font-weight: 600;

    color: var(--text);

    transition: var(--transition);
}

.ks-gateway-trigger:hover {

    border-color: var(--purple);
}

.ks-gateway-select-wrap.open .ks-gateway-trigger {

    border-color: var(--purple);

    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.08);
}

.ks-gateway-trigger-label {

    display: flex;

    align-items: center;

    gap: 10px;
}

.ks-gateway-trigger-icon {

    width: 26px;

    height: 26px;

    border-radius: 7px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    font-weight: 800;

    color: var(--white);

    flex-shrink: 0;
}

.ks-gateway-trigger i.chevron {

    font-size: 11px;

    color: var(--text-light, #888);

    transition: transform 0.15s ease;
}

.ks-gateway-select-wrap.open .ks-gateway-trigger i.chevron {

    transform: rotate(180deg);
}

.ks-gateway-options {

    position: absolute;

    left: 0;

    right: 0;

    top: calc(100% + 6px);

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

    padding: 6px;

    z-index: 40;

    display: none;
}

.ks-gateway-select-wrap.open .ks-gateway-options {

    display: block;
}

.ks-gateway-option {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 9px 10px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 12.5px;

    font-weight: 600;

    color: var(--text);
}

.ks-gateway-option:hover {

    background: var(--purple-soft);
}

.ks-gateway-option.selected {

    background: var(--purple-soft);

    color: var(--purple-dark);
}

.ks-gateway-option .ks-gateway-trigger-icon {

    width: 22px;

    height: 22px;

    font-size: 10px;
}


/* =========================================================
   STATEMENT OF ACCOUNT — DOWNLOAD BUTTON
   ========================================================= */

.statement-download-btn {

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 12px 14px;

    background: var(--white);

    cursor: pointer;

    text-align: left;

    margin: 14px 0;

    transition: var(--transition);
}

.statement-download-btn:hover {

    border-color: var(--purple);

    background: var(--purple-soft);
}

.statement-download-icon {

    width: 38px;

    height: 38px;

    border-radius: 10px;

    background: var(--purple-soft);

    color: var(--purple);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 15px;

    flex-shrink: 0;
}

.statement-download-btn:hover .statement-download-icon {

    background: var(--purple);

    color: var(--white);
}

.statement-download-text {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;
}

.statement-download-text strong {

    font-size: 13px;

    color: var(--text);
}

.statement-download-text small {

    font-size: 11px;

    color: var(--text-light, #888);

    margin-top: 2px;
}

.statement-download-chevron {

    font-size: 12px;

    color: var(--text-light, #888);

    flex-shrink: 0;
}


/* =========================================================
   STATEMENT MODAL — RANGE SELECTION
   ========================================================= */

.statement-modal {
    max-width: 380px;
}

.statement-range-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin: 16px 0 10px;
}

.statement-range-chip {

    appearance: none;

    border: 1.5px solid var(--border);

    border-radius: 10px;

    background: var(--white);

    padding: 12px 10px;

    font-size: 12.5px;

    font-weight: 700;

    color: var(--text);

    cursor: pointer;

    transition: var(--transition);

    text-align: center;
}

.statement-range-chip:hover {

    border-color: var(--purple);

    background: var(--purple-soft);
}

.statement-range-chip.active {

    border-color: var(--purple);

    background: var(--purple);

    color: var(--white);

    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.statement-custom-toggle {

    appearance: none;

    width: 100%;

    display: flex;

    align-items: center;

    gap: 8px;

    border: none;

    background: none;

    padding: 8px 2px;

    font-size: 12px;

    font-weight: 600;

    color: var(--purple);

    cursor: pointer;
}

.statement-custom-toggle i:first-child {

    font-size: 12px;
}

.statement-custom-toggle span {

    flex: 1;

    text-align: left;
}

.statement-custom-chevron {

    font-size: 10px;

    transition: transform 0.15s ease;
}

.statement-custom-toggle.open .statement-custom-chevron {

    transform: rotate(180deg);
}

.statement-custom-range {

    display: flex;

    gap: 10px;

    background: var(--purple-soft);

    border-radius: 10px;

    padding: 12px;

    margin-bottom: 10px;
}

.statement-custom-range .form-group {

    flex: 1;

    margin-bottom: 0;
}

.statement-selected-summary {

    display: flex;

    align-items: center;

    gap: 8px;

    background: #ecfdf5;

    border: 1px solid #a7f3d0;

    border-radius: 10px;

    padding: 10px 12px;

    margin-bottom: 12px;

    font-size: 12px;

    font-weight: 600;

    color: #047857;
}

.statement-selected-summary i {

    font-size: 14px;

    flex-shrink: 0;
}

.statement-excel-btn {

    background: #059669;
}

.statement-excel-btn:hover {

    background: #047857;
}

#downloadStatementPdfButton:disabled,
.statement-excel-btn:disabled {

    opacity: 0.4;

    cursor: not-allowed;
}


/* =========================================================
   LIVE FACE VERIFICATION CAMERA
   ========================================================= */

.face-camera-frame {

    position: relative;

    width: 100%;

    aspect-ratio: 3 / 4;

    max-height: 320px;

    border-radius: 14px;

    overflow: hidden;

    background: #111;

    margin-bottom: 14px;
}

.face-camera-frame video,
.face-camera-frame img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    /* Mirror the preview so it feels like a normal selfie/mirror,
       not backwards — the captured frame itself is unaffected. */
    transform: scaleX(-1);
}

.face-camera-frame #faceVerificationCameraError {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 20px;

    text-align: center;

    color: #fff;

    background: #1f1f1f;
}

.face-camera-frame #faceVerificationCameraError i {

    font-size: 26px;

    color: #f87171;
}

.face-camera-frame #faceVerificationCameraError span {

    font-size: 12.5px;

    color: #d1d5db;
}



/* =========================================================
   KCHARGE — device charging intake/pickup management
   ========================================================= */

.kcharge-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}

.kcharge-summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.kcharge-summary-card span {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 6px;
}

.kcharge-summary-card strong {
    font-size: 22px;
    color: var(--text);
}

.kcharge-main-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.kcharge-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--purple-soft);
    color: var(--purple);
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.kcharge-action-btn:hover {
    background: var(--purple);
    color: #fff;
}

.kcharge-panel {
    padding: 20px;
}

.kcharge-panel .ks-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.kcharge-panel #kchargeSearchInput {
    flex: 1;
    min-width: 220px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
}

.kcharge-requests {
    min-height: 180px;
}

.kcharge-empty {
    text-align: center;
    padding: 45px 20px;
    color: var(--text-light);
}

.kcharge-empty i {
    font-size: 34px;
    margin-bottom: 12px;
    color: var(--purple);
}

.kcharge-request {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}

.kcharge-request:hover {
    border-color: var(--purple);
}

.kcharge-request-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kcharge-request-info strong {
    font-size: 14px;
}

.kcharge-request-info span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.kcharge-request-info small {
    font-size: 11.5px;
    color: var(--text-light);
    opacity: .8;
}

.kcharge-status {
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    background: var(--purple-soft);
    color: var(--purple);
    white-space: nowrap;
}

.kcharge-status.status-ready {
    background: #e8f5e9;
    color: #2e7d32;
}

.kcharge-status.status-charging {
    background: #fff3e0;
    color: #e65100;
}

.kcharge-status.status-picked-up {
    background: #eceff1;
    color: #455a64;
}

.kcharge-status.status-unclaimed {
    background: #ffebee;
    color: #c62828;
}

.kcharge-status.status-cancelled {
    background: #f5f5f5;
    color: #9e9e9e;
}

/* ==========================================
   KCHARGE — COPYABLE CODE REVEAL
   The single-purpose card shown once a code
   exists (confirmation code, pickup code +
   PIN) — no competing form fields, just the
   code and a way to copy it.
   ========================================== */

.kcharge-code-reveal {
    background: var(--purple-soft);
    border-radius: 14px;
    padding: 20px 18px;
    margin-bottom: 14px;
    text-align: center;
}

.kcharge-code-reveal-label {
    margin: 0 0 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.kcharge-code-reveal-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.kcharge-code-reveal-value {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--purple);
    font-variant-numeric: tabular-nums;
}

.kcharge-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(130, 87, 230, 0.25);
    background: #fff;
    color: var(--purple);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease, transform .1s ease;
}

.kcharge-copy-btn:hover {
    background: var(--purple-soft);
}

.kcharge-copy-btn:active {
    transform: scale(.94);
}

.kcharge-copy-btn-done {
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.3);
    background: #e8f5e9;
}

.kcharge-code-reveal-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.kcharge-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.kcharge-detail-row span:first-child {
    color: var(--text-light);
}

.kcharge-status-log-item {
    font-size: 12px;
    color: var(--text-light);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

/* Status history timeline — a connecting line down the left,
   an icon marker per step, status name + who/when underneath. */

.kcharge-timeline-section {
    margin-top: 18px;
}

.kcharge-timeline-heading {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 12px;
}

.kcharge-timeline {
    position: relative;
}

.kcharge-timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 18px;
}

.kcharge-timeline-item::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.kcharge-timeline-item-last::before {
    display: none;
}

.kcharge-timeline-marker {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple-soft);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 1;
}

.kcharge-timeline-content {
    padding-top: 4px;
}

.kcharge-timeline-status {
    margin: 0 0 2px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.kcharge-timeline-meta {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .kcharge-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .kcharge-summary-grid {
        grid-template-columns: 1fr;
    }
    .kcharge-request {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   MODERN SELECT
   Styled replacement for the native <select> dropdown.
   Opt in with <select data-modern-select>; give an <option>
   a data-icon="fa-solid fa-..." to show an icon beside it.
   The native <select> stays in the DOM (visually hidden) as
   the source of truth, so .value keeps working everywhere.
   Picks up the Seller Center's --ks-* tokens automatically
   when used inside .ks-seller-app.
   ========================================================= */

.ks-select {
    position: relative;
    width: 100%;
}

.ks-select > select.ks-select-native {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}


/* ---------- Trigger (the closed dropdown) ---------- */

.ks-select-trigger {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--ks-hairline, var(--border));
    border-radius: 12px;
    background: var(--ks-base, var(--white));
    color: var(--ks-ink, var(--text));
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.ks-select-trigger:hover {
    border-color: #d4d4dc;
}

.ks-select-trigger:focus-visible,
.ks-select.is-open .ks-select-trigger {
    border-color: var(--ks-purple, var(--purple));
    background: var(--ks-surface, var(--white));
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.ks-select-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ks-select-value {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ks-select-value-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ks-select-trigger.is-placeholder .ks-select-value-text {
    color: var(--ks-muted-soft, var(--muted));
    font-weight: 400;
}

.ks-select-value-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--ks-purple, var(--purple));
}

.ks-select-chevron {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--ks-muted-soft, var(--muted));
    transition: transform 0.2s ease, color 0.15s ease;
}

.ks-select.is-open .ks-select-chevron {
    transform: rotate(180deg);
    color: var(--ks-purple, var(--purple));
}


/* ---------- Option panel ---------- */

.ks-select-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    box-sizing: border-box;
    max-height: 260px;
    margin: 0;
    padding: 6px;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: var(--ks-surface, var(--white));
    border: 1px solid var(--ks-hairline, var(--border));
    border-radius: 14px;
    box-shadow:
        0 14px 34px rgba(28, 23, 48, 0.15),
        0 2px 6px rgba(28, 23, 48, 0.06);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0s linear 0.16s;
}

.ks-select.opens-up .ks-select-list {
    top: auto;
    bottom: calc(100% + 6px);
    transform: translateY(6px) scale(0.98);
    transform-origin: bottom center;
}

.ks-select.is-open .ks-select-list {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0s;
}


/* ---------- Options ---------- */

.ks-select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--ks-ink, var(--text));
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s ease;
}

.ks-select-option + .ks-select-option {
    margin-top: 2px;
}

.ks-select-option.is-active {
    background: var(--ks-purple-soft, var(--purple-soft));
}

.ks-select-option.is-selected {
    color: var(--purple-dark, #4c1d95);
    font-weight: 600;
}

.ks-select-option[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.ks-select-option-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f4f1fa;
    color: var(--ks-purple, var(--purple));
    font-size: 13px;
    transition: background 0.12s ease, color 0.12s ease;
}

.ks-select-option.is-active .ks-select-option-icon {
    background: var(--ks-surface, var(--white));
}

.ks-select-option.is-selected .ks-select-option-icon {
    background: var(--ks-purple, var(--purple));
    color: #fff;
}

.ks-select-option-text {
    flex: 1;
    min-width: 0;
}

.ks-select-check {
    margin-left: auto;
    font-size: 12px;
    color: var(--ks-purple, var(--purple));
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.ks-select-option.is-selected .ks-select-check {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ks-select-trigger,
    .ks-select-chevron,
    .ks-select-list,
    .ks-select-option,
    .ks-select-check {
        transition: none;
    }
}


/* =====================================================
   MODERN DATETIME
   Same visual language as ks-select — a styled trigger
   that opens a floating panel, replacing the browser's
   native date/time popup.
   ===================================================== */

.ks-datetime {
    position: relative;
    width: 100%;
}

.ks-datetime > input.ks-datetime-native {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.ks-datetime-trigger {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--ks-hairline, var(--border));
    border-radius: 12px;
    background: var(--ks-base, var(--white));
    color: var(--text-light);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.ks-datetime-trigger:hover {
    border-color: #d4d4dc;
}

.ks-datetime-trigger-open,
.ks-datetime-trigger:focus-visible {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(130, 87, 230, 0.12);
}

.ks-datetime-trigger-filled {
    color: var(--text);
}

.ks-datetime-trigger i.fa-regular.fa-calendar {
    color: var(--purple);
    font-size: 13px;
    flex-shrink: 0;
}

.ks-datetime-trigger-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ks-datetime-trigger-chevron {
    font-size: 10px;
    color: var(--text-light);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.ks-datetime-trigger-open .ks-datetime-trigger-chevron {
    transform: rotate(180deg);
}

.ks-datetime-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    width: 280px;
    max-width: 90vw;
    background: var(--white);
    border: 1px solid var(--ks-hairline, var(--border));
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20, 18, 27, 0.16);
    padding: 14px;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.ks-datetime-panel.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.ks-datetime-panel-up {
    top: auto;
    bottom: calc(100% + 8px);
}

.ks-datetime-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ks-datetime-month-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.ks-datetime-nav {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 11px;
    cursor: pointer;
    transition: background 0.12s ease;
}

.ks-datetime-nav:hover {
    background: var(--purple-soft);
    color: var(--purple);
}

/* DOB-style date-only mode: month + year selects replace the
   prev/next arrows, for jumping decades back quickly. */

.ks-datetime-calendar-head-select {
    gap: 8px;
}

.ks-datetime-month-select,
.ks-datetime-year-select {
    flex: 1;
    padding: 7px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
}

.ks-datetime-year-select {
    flex: 0 0 84px;
}

.ks-datetime-day-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.ks-datetime-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.ks-datetime-weekdays span {
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-light);
    padding: 4px 0;
}

.ks-datetime-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 12px;
}

.ks-datetime-day {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 9px;
    font-size: 12.5px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.ks-datetime-day:hover {
    background: var(--purple-soft);
}

.ks-datetime-day-muted {
    color: var(--text-light);
    opacity: 0.45;
}

.ks-datetime-day-today {
    font-weight: 800;
    color: var(--purple);
}

.ks-datetime-day-selected {
    background: var(--purple);
    color: #fff;
    font-weight: 700;
}

.ks-datetime-day-selected:hover {
    background: var(--purple);
}

.ks-datetime-time-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--ks-hairline, var(--border));
    margin-bottom: 12px;
}

.ks-datetime-time-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ks-datetime-time-field label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light);
}

.ks-datetime-time-field input {
    width: 56px;
    box-sizing: border-box;
    padding: 7px 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--ks-hairline, var(--border));
    border-radius: 9px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    -moz-appearance: textfield;
}

/* Native spinner arrows on a 48px-wide number input eat
   into the space meant for the digits themselves — hiding
   them frees the full width for the actual hour/minute text,
   which is what was making the numbers look squeezed/garbled. */

.ks-datetime-time-field input::-webkit-outer-spin-button,
.ks-datetime-time-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ks-datetime-time-field input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(130, 87, 230, 0.12);
}

.ks-datetime-time-sep {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    padding-bottom: 8px;
}

.ks-datetime-ampm {
    display: flex;
    border: 1px solid var(--ks-hairline, var(--border));
    border-radius: 9px;
    overflow: hidden;
    margin-left: auto;
}

.ks-datetime-ampm-btn {
    all: unset;
    box-sizing: border-box;
    padding: 7px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.ks-datetime-ampm-btn.active {
    background: var(--purple);
    color: #fff;
}

.ks-datetime-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ks-datetime-footer button {
    all: unset;
    box-sizing: border-box;
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease;
}

.ks-datetime-clear,
.ks-datetime-now {
    color: var(--text-light);
}

.ks-datetime-clear:hover,
.ks-datetime-now:hover {
    background: var(--purple-soft);
    color: var(--purple);
}

.ks-datetime-done {
    background: var(--purple);
    color: #fff;
}

.ks-datetime-done:hover {
    background: var(--purple-dim, var(--purple));
}

@media (prefers-reduced-motion: reduce) {
    .ks-datetime-panel,
    .ks-datetime-trigger-chevron {
        transition: none;
    }
}


/* =========================================================
   SIGNUP — ACCOUNT TYPE TOGGLE (Student / Not a Student)
   ========================================================= */

.ks-account-type-toggle {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.ks-account-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ks-account-type-btn i {
    font-size: 14px;
    color: var(--text-light);
    transition: color .15s ease;
}

.ks-account-type-btn:hover {
    border-color: var(--purple);
}

.ks-account-type-btn.active {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.ks-account-type-btn.active i {
    color: #fff;
}


/* =========================================================
   SIGNUP — TWO-STEP FORM
   ========================================================= */

.ks-signup-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 22px;
}

.ks-signup-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    background: var(--border);
    color: var(--text-light);
    transition: background .15s ease, color .15s ease;
}

.ks-signup-step-dot.active {
    background: var(--purple);
    color: #fff;
}

.ks-signup-step-dot.completed {
    background: var(--purple-soft);
    color: var(--purple);
}

.ks-signup-step-line {
    width: 36px;
    height: 2px;
    background: var(--border);
}

.ks-signup-step-actions {
    display: flex;
    gap: 10px;
}

.ks-signup-step-actions .create-account-btn {
    flex: 1;
}

.ks-signup-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ks-signup-back-btn:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.ks-signup-step-title {
    margin: -6px 0 18px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.ks-signup-review {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #faf8ff;
}

.ks-signup-review div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.ks-signup-review span {
    color: var(--text-light);
}

.ks-signup-review b {
    text-align: right;
    font-weight: 700;
}

#signupForm .form-group select,
#completeProfileForm select,
#signupForm .form-group .kp-wrap,
#completeProfileForm .kp-wrap,
.ks-campus-modal .kp-wrap {
    width: 100%;
    min-height: 46px;
}

#signupForm .form-group .kp-trigger,
#completeProfileForm .kp-trigger,
.ks-campus-modal .kp-trigger {
    width: 100%;
    min-height: 46px;
}

@media (max-width: 700px) {
    #signUpModal.modal-overlay,
    #signInModal.modal-overlay,
    #completeProfileModal.modal-overlay {
        align-items: stretch;
        padding: 0;
    }

    #signUpModal .auth-modal,
    #signInModal .auth-modal,
    #completeProfileModal .auth-modal {
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    }

    #signUpModal .auth-modal {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    #signUpModal .auth-header {
        flex-shrink: 0;
    }

    #signupForm {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .ks-signup-step-indicator,
    .ks-signup-step-title {
        flex-shrink: 0;
    }

    /* The field list scrolls. Back and Next stay under it, so the
       last LGA is never hidden behind the buttons. Inline
       display:none on a hidden step still wins over this. */
    #signupStep1,
    #signupStep2,
    #signupStep3,
    #signupStep4 {
        display: flex;
        flex: 1;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
    }

    .ks-signup-step-fields {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: 8px;
    }

    #signUpModal .auth-header h2 {
        font-size: 24px;
    }

    #signupForm .form-group {
        margin-bottom: 14px;
    }

    #signupForm .form-group input,
    #signupForm .form-group select,
    #completeProfileForm input,
    #completeProfileForm select {
        min-height: 50px;
        font-size: 16px;
        border-radius: 14px;
    }

    .ks-account-type-btn {
        min-height: 52px;
        border-radius: 14px;
    }

    .ks-signup-step-actions {
        position: static;
        flex-shrink: 0;
        margin-top: 0;
        padding: 12px 0 0;
        background: #fff;
        border-top: 1px solid var(--border);
    }

    .ks-signup-step-actions .create-account-btn,
    .ks-signup-back-btn {
        min-height: 50px;
    }

    .ks-signup-step-line {
        width: 18px;
    }
}


/* =========================================================
   MOBILE FORM FIX — iOS auto-zoom prevention
   iOS Safari automatically zooms the whole page in when a
   focused form field's computed font-size is under 16px,
   since it assumes anything smaller is too small to read.
   Dozens of input/textarea/select rules across this file sit
   between 11px and 15px (chat, signup, KCharge, announcements,
   the date picker, and more) — rather than hunting each one
   down individually, this single mobile-only override forces
   every real form field to at least 16px, which is enough to
   stop the zoom without needing to touch the desktop sizing
   any of those rules were actually designed around.
   ========================================================= */

@media (max-width: 900px) {

    input,
    textarea,
    select {
        font-size: 16px !important;
    }

}


/* =========================================================
   REFERRAL BANNER + CASHOUT PIN SETUP
   ========================================================= */

.referral-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--purple-soft);
    border: 1px solid #e9d5ff;
    color: var(--purple-dark);
    font-size: 13px;
    line-height: 1.45;
}

.referral-banner i { color: var(--purple); }

.cashout-pin-setup {
    margin: 0 0 14px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e9d5ff;
    background: #faf5ff;
}

.cashout-pin-setup-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    text-align: left;
}

.cashout-pin-setup-head i {
    color: var(--purple);
    font-size: 18px;
    margin-top: 2px;
}

.cashout-pin-setup-head strong {
    display: block;
    font-size: 14px;
    color: var(--black);
}

.cashout-pin-setup-head span {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.5;
}

.cashout-pin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}


/* =========================================================
   FAQ — ACCORDION (inside the legal page)
   ========================================================= */

.faq-item {

    border: 1px solid var(--border);

    border-radius: 12px;

    margin-bottom: 10px;

    background: var(--white, transparent);
}

.faq-item summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 14px 16px;

    font-size: 14px;

    font-weight: 700;

    color: var(--text);

    cursor: pointer;

    list-style: none;
}

.faq-item summary::-webkit-details-marker {

    display: none;
}

.faq-item summary::after {

    content: "+";

    flex-shrink: 0;

    font-size: 18px;

    line-height: 1;

    color: var(--purple);

    transition: var(--transition);
}

.faq-item[open] summary::after {

    transform: rotate(45deg);
}

.faq-item[open] summary {

    color: var(--purple);
}

.faq-item p {

    padding: 0 16px 14px;

    margin-bottom: 0;
}

.faq-cta {

    margin-top: 28px;

    padding: 18px 20px;

    border-radius: 14px;

    background: var(--purple-soft);

    text-align: center;
}

.faq-cta p {

    margin-bottom: 6px;
}

.faq-cta-tagline {

    font-weight: 700;

    color: var(--purple-dark);

    letter-spacing: 0.02em;
}


/* The NIN / face verification window is opened from inside other
   windows (Errand Agent, Craft sign-up, …). It must sit above them,
   or it opens hidden behind the window that asked for it. */

#ninVerificationOverlay {

    z-index: 3600;
}

/* ---------- Product details & reviews ---------- */
.product-opens-details { cursor: pointer; }
.product-rating.product-details-link { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.product-rating.product-details-link:hover .product-rating-count { text-decoration: underline; }
.product-rating-none { color: var(--ks-muted, #6b7280); font-size: 12px; }
.ks-pd { position: relative; max-width: 560px; width: calc(100% - 32px); max-height: calc(100vh - 48px); overflow-y: auto; padding: 0; text-align: left; }
.ks-pd-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .55); color: #fff; cursor: pointer; }
.ks-pd-image { aspect-ratio: 16 / 10; background: var(--ks-soft, #f5f3ff); display: flex; align-items: center; justify-content: center; font-size: 48px; color: #7c3aed; }
.ks-pd-image img { width: 100%; height: 100%; object-fit: cover; }
.ks-pd-body { padding: 18px 20px 22px; }
.ks-pd-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #7c3aed; }
.ks-pd-body h2 { margin: 4px 0 6px; font-size: 20px; }
.ks-pd-price { display: flex; gap: 8px; align-items: baseline; font-size: 18px; }
.ks-pd-price s { color: var(--ks-muted, #6b7280); font-size: 14px; }
.ks-pd-price strong { color: #6d28d9; }
.ks-pd-store, .ks-pd-stock { margin: 6px 0 0; font-size: 13px; color: var(--ks-muted, #6b7280); }
.ks-pd-stock.out { color: #dc2626; font-weight: 600; }
.ks-pd-description { margin: 12px 0 0; line-height: 1.55; white-space: pre-line; }
.ks-pd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.ks-pd-actions .auth-button { width: auto; flex: 1 1 180px; margin: 0; }
.ks-pd-reviews { margin-top: 20px; border-top: 1px solid var(--ks-border, #ece9f3); padding-top: 14px; }
.ks-pd-reviews h3 { margin: 0 0 10px; font-size: 16px; }
.ks-pd-muted { color: var(--ks-muted, #6b7280); font-size: 13px; }
.ks-pd-summary { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ks-pd-average { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.ks-pd-average strong { font-size: 32px; line-height: 1; }
.ks-pd-stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.ks-pd-bars { flex: 1 1 200px; display: grid; gap: 4px; }
.ks-pd-bar { display: grid; grid-template-columns: 28px 1fr 24px; gap: 8px; align-items: center; font-size: 12px; }
.ks-pd-bar-track { height: 7px; border-radius: 99px; background: var(--ks-border, #ece9f3); overflow: hidden; }
.ks-pd-bar-track span { display: block; height: 100%; background: #f59e0b; }
.ks-pd-review-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.ks-pd-review { padding-bottom: 12px; border-bottom: 1px solid var(--ks-border, #ece9f3); }
.ks-pd-review-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ks-pd-review-head time { margin-left: auto; color: var(--ks-muted, #6b7280); font-size: 12px; }
.ks-pd-review p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
