    :root{
       --wa-primary: #25D366;
       --wa-dark: #128C7E;
       --wa-header: #075E54;
       --wa-light: #DCF8C6;
       --wa-bg: #E5DDD5;
    }

        body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: #d9fdd3;
        }

        /* MAIN CONTAINER */
        .chat-container {
            max-width: 420px;
            margin: auto;
            height: 92vh;
            display: flex;
            flex-direction: column;
            border-radius:18px;
            background:#efeae2;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }

        /* HEADER */
        .chat-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 16px;
            background: linear-gradient(135deg, var(--wa-header), var(--wa-dark) );
            color: white;
            border-radius: 10px 10px 0 0;
        }
        .chat-back {
            font-size: 18px;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
        }
        .chat-header-avatar {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }
        .chat-header-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }
        .chat-header-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .chat-header-name {
            font-weight: bold;
            font-size: 14px;
            line-height: 1.2;
        }
        .chat-header-phone {
            font-size: 12px;
            opacity: 0.8;
        }

        /* MESSAGES */
        .messages {
            flex: 1;
            padding: 10px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            scrollbar-width: thin;
            scrollbar-color: #25D366 #f0f0f0;
        }
        .messages::-webkit-scrollbar {
            width: 8px;
            background: #f0f0f0;
        }
        .messages::-webkit-scrollbar-thumb {
            background: #25D366;
            border-radius: 10px;
        }
        .message {
            max-width: 75%;
            padding: 10px;
            margin: 5px 0;
            border-radius: 12px;
            animation: fadeIn 0.3s ease;
            display: inline-block;
        }
        .bot {
            background: white;
            align-self: flex-start;
        }
        .user {
            background: var(--wa-primary);
            color: white;
            align-self: flex-end;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* INPUT AREA */
        .input-area {
            background: #f0f0f0;
            display: flex;
            padding: 10px 12px;
            align-items: center;
            gap: 8px;
            border-top: 1px solid #ddd;
        }
        .attach-button {
            width: 42px;
            height: 42px;
            min-width: 42px;
            border: none;
            border-radius: 50%;
            background: #f1f1f1;
            font-size: 18px;
            cursor: pointer;
            flex-shrink: 0;
        }
        #user-input {
            flex: 1;
            min-width: 0;
            height: 42px;
            border: none;
            border-radius: 22px;
            padding: 0 14px;
            font-size: 15px;
            outline: none;
            background: #fff;
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        }
        .send-button {
            width: 42px;
            height: 42px;
            min-width: 42px;
            border: none;
            border-radius: 50%;
            background: var(--wa-primary);
            color: white;
            font-size: 22px;
            cursor: pointer;
            flex-shrink: 0;
        }

        /* CHAT LIST */
        .chat-list {
            flex: 1;
            overflow-y: auto;
            padding: 5px;
        }
        .chat-item {
            display: flex;
            align-items: center;
            padding: 12px 10px;
            margin: 6px 8px;
            border-radius: 20px;
            background: white;
            text-decoration: none;
            color: inherit;
            transition: 0.2s;
        }
        .chat-item:hover {
            background: #eef4ff;
        }
        .chat-avatar img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
        }
        .chat-info {
            margin-left: 12px;
            flex: 1;
        }
        .chat-name {
            font-weight: bold;
            font-size: 15px;
        }
        .chat-phone {
            font-size: 13px;
            color: gray;
        }

        /* SEARCH */
        .chat-search {
            padding: 10px;
        }
        .chat-search input {
            width: 100%;
            padding: 10px 15px;
            border-radius: 20px;
            border: none;
            outline: none;
            background: #e9eef5;
            font-size: 14px;
        }

        /* TOP NAV TABS */
        .top-nav {
            display: flex;
            justify-content: space-around;
            background: #fff;
            padding: 10px;
            border-radius: 10px;
            gap: 8px;
            overflow-x: auto;
            white-space: nowrap;
            border-bottom: 1px solid #eee;
        }
        .tab {
            padding: 10px 18px;
            border-radius: 20px;
            background: #f1f3f5;
            color: #555;
            font-size: 18px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            flex-shrink: 0;
        }
        .tab.active {
            background: var(--wa-primary);
            color: white;
            font-weight: 600;
        }

        /* BOTTOM NAV */
        .bottom-nav {
            display: flex;
            justify-content: space-around;
            padding: 10px;
            margin: 10px;
            border-radius: 25px;
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            bottom: 10px;
            z-index: 9999;
        }
        .nav-item {
            font-size: 18px;
            color: gray;
            cursor: pointer;
        }
        .nav-item.active {
            color: var(--wa-primary);
        }

        /* REELS */
        .reels-scroll {
            flex: 1;
            overflow-y: scroll;
            scroll-snap-type: y mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .reels-scroll::-webkit-scrollbar {
            display: none;
        }
        .reel {
            position: relative;
            height: 100%;
            width: 100%;
            scroll-snap-align: start;
            background: #000;
            overflow: hidden;
        }
        .reel-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .top-bar {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
            z-index: 10;
            color: white;
        }
        .account-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .profile-pic img {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 2px solid white;
        }
        .username {
            font-weight: 700;
            font-size: 15px;
        }
        .close-btn {
            background: rgba(255,255,255,0.25);
            color: white;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
        }
        .engagement-bar {
            position: absolute;
            right: 12px;
            bottom: 180px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 22px;
            z-index: 10;
            color: white;
            text-shadow: 0 2px 8px rgba(0,0,0,0.6);
        }
        .engagement-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .icon {
            font-size: 32px;
        }
        .count {
            font-size: 13px;
            font-weight: 600;
            margin-top: 4px;
        }
        .order-now-side {
            background: linear-gradient(90deg, #ff0066, #ff8800);
            color: white;
            border: none;
            padding: 12px 18px;
            font-size: 15px;
            font-weight: 700;
            border-radius: 30px;
            box-shadow: 0 6px 20px rgba(255, 0, 102, 0.5);
            cursor: pointer;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            margin-top: 10px;
        }
        .bottom-section {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 16px 16px 20px;
            z-index: 10;
        }
        .reel-caption {
            color: white;
            font-size: 15.5px;
            line-height: 1.35;
            font-weight: 500;
            text-shadow: 0 2px 10px rgba(0,0,0,0.7);
            margin-bottom: 6px;
        }

        /* DASHBOARD */
        .dashboard {
            flex: 1;
            padding: 15px;
            background: #f5f7fb;
            overflow-y: auto;
        }
        .daily-score {
            background: linear-gradient(135deg, #ffffff, #f0f4ff);
            border-radius: 20px;
            padding: 14px;
            text-align: center;
            margin-bottom: 15px;
            margin-top: 15px;
            box-shadow: 0 4px 15px rgba(0, 136, 204, 0.1);
            border: 1px solid #e0eaff;
        }
        .score-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: conic-gradient(#25D366 0% 90%, #e0eaff 90% 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
        }
        .score-circle-inner {
            width: 95px;
            height: 95px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }
        .score-text {
            font-size: 32px;
            font-weight: bold;
            color: #25D366;
        }
        .score-label {
            font-size: 14px;
            color: #555;
            font-weight: 500;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
            margin-bottom: 20px;
        }
        .stat-card {
            background: white;
            border-radius: 16px;
            padding: 15px;
            text-align: center;
            box-shadow: 0 3px 12px rgba(0, 136, 204, 0.08);
        }
        .stat-value {
            font-size: 22px;
            font-weight: 700;
            color: #25D366;
            margin: 8px 0;
        }
        .stat-label {
            font-size: 13px;
            color: #666;
        }

        /* WORKPLACE */
        .workplace-section {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            background: #f8fafd;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .filter-tabs {
            display: flex;
            background: white;
            border-radius: 12px;
            padding: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            margin-bottom: 8px;
        }
        .filter-tab {
            flex: 1;
            padding: 10px;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .filter-tab.active {
            background: #25D366;
            color: white;
        }
        
        /* Info Card - New */
        .card-title{
            color: #25D366;
            font-size: 20px;
            font-weight: 500;
            margin-bottom: 8px;
            margin-top: 8px;
        }
        .info-card {
    background: #f5f7fb;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
        .info-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e8ec;
    gap: 12px;
;
}
        .info-item:last-child {
    border-bottom: none;
}
        .info-icon {
    width: 36px;
    font-size: 18px;
    color: #25D366;
}
        .info-details {
    flex: 1;
}
        .info-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
        .info-value {
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 500;
}

        /* ACTION BUTTONS */
        .action-buttons {
            display: flex;
            padding: 8px 0;
            gap: 10px;
            margin-bottom: 16px;
        }
        .action-tab {
            flex: 1;
            padding: 10px 8px;
            border-radius: 12px;
            background: #ffffff;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        .action-icon {
            font-size: 18px;
        }
        .action-label {
            font-size: 11px;
        }

        /* TEMPLATE PANEL */
        .template-panel {
            position: absolute;
            bottom: -100%;
            left: 0;
            width: 100%;
            height: 70%;
            background: #ffffff;
            border-top-left-radius: 22px;
            border-top-right-radius: 22px;
            padding: 18px;
            transition: 0.35s ease;
            z-index: 999;
            overflow-y: auto;
            box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
        }
        .template-panel.active {
            bottom: 0;
        }
        .template-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 15px;
        }
        .template {
            aspect-ratio: 9/16;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            background: #f5f5f5;
        }
        .template img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* MISC */
        .msg-meta {
            display: flex;
            justify-content: flex-end;
            align-items: baseline;
            gap: 4px;
            margin-top: 5px;
            font-size: 11px;
            color: rgba(0,0,0,0.5);
        }
        .ticks {
            font-size: 12px;
            letter-spacing: -2px;
            color:#4aa3ff;
        }
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: #25D366;
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            display: none;
            z-index: 1000;
            white-space: nowrap;
        }
        .dots-btn {
            background: none;
            border: none;
            font-size: 22px;
            cursor: pointer;
            color: white;
            padding: 5px 10px;
        }
        .dropdown-menu {
            display: none;
            position: absolute;
            right: 0;
            top: 25px;
            background: white;
            border-radius: 6px;
            min-width: 120px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 999;
            overflow: hidden;
        }
        .services-card {
            display: flex;
            justify-content: space-around;
            background: #fff;
            padding: 10px;
            border-radius: 10px;
            gap: 8px;
            overflow-x: auto;
            white-space: nowrap;
            border-bottom: 1px solid #eee;
        }    
