    /* ==========================================
ROOT VARIABLES
========================================== */
    
     :root {
        --primary: #7C3AED;
        --primary-hover: #6D28D9;
        --primary-light: #F3E8FF;
        --bg: #F8F7FC;
        --border: #E9E5F4;
        --text: #111827;
        --muted: #6B7280;
        --shadow: 0 10px 30px rgba(124, 58, 237, .06);
    }
    /* ==========================================
GLOBAL / BASE
========================================== */
    
    .share-buttons {
        display: flex;
        align-items: center;
        gap: 10px;
        /* button vachhe gap */
        flex-wrap: wrap;
        /* mobile ma next line ma jai sake */
    }
    
    .share-buttons a {
        color: var(--primary);
    }
    
    body {
        background: var(--bg);
        font-family: Inter, Arial, sans-serif;
        color: var(--text);
        overflow-x: hidden;
    }
    
    a {
        text-decoration: none !important;
    }
    
    img {
        max-width: 100%;
    }
    
    .main {
        padding: 20px;
    }
    
    * {
        margin: 0;
        box-sizing: border-box;
    }
    
    .btn-play-video {
        position: absolute;
        top: 50%;
        left: 14%;
        transform: translate(50%,-50%);
        width: 35px;
        height: 35px;
        border: none;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        opacity: 0.6 !important;
    }
    
    .recently-btn-play-video {
        position: absolute;
        top: 50%;
        left: 40%;
        transform: translate(-50%, -50%);
        width: 35px;
        height: 35px;
        border: none;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        opacity: 0.6 !important;
    }
    /* ==========================================
HEADER & TOPBAR
========================================== */
    
    .page-title {
        font-size: 34px;
        font-weight: 700;
    }
    
    .page-subtitle {
        color: var(--muted);
    }
    /* ==========================================
PROFILE DROPDOWN
========================================== */
    
    .profile-dropdown {
        position: relative;
    }
    
    .profile-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow);
    }
    
    .profile-menu {
        position: absolute;
        top: 58px;
        right: 0;
        width: 220px;
        background: #fff;
        border-radius: 18px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
        z-index: 999;
    }
    
    .profile-menu.active {
        display: block;
        text-decoration: none !important;
    }
    
    .profile-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        color: #374151;
        transition: .3s;
        text-decoration: none;
    }
    
    .profile-item:hover {
        background: var(--primary-light);
        color: var(--primary);
    }
    /* ==========================================
LOGO
========================================== */
    
    .logo-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .logo-icon {
        width: 52px;
        height: 52px;
        border-radius: 10px;
        background: linear-gradient(135deg, #7C3AED, #A855F7);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }
    
    .logo-title {
        font-size: 20px;
        font-weight: 700;
    }
    
    .logo-sub {
        color: var(--muted);
        font-size: 12px;
    }
    /* ==========================================
DASHBOARD CARDS
========================================== */
    
    .hero-card,
    .stat-card,
    .section-card,
    .analytics-card,
    .form-card,
    .filter-card,
    .table-card,
    .card-box {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 24px;
        box-shadow: var(--shadow);
        margin-bottom: 20px;
    }
    
    .hero-badge {
        color: var(--primary);
        font-size: 14px;
        font-weight: 700;
    }
    
    .hero-title {
        font-size: 36px;
        font-weight: 800;
        margin: 10px 0;
    }
    
    .hero-text {
        color: var(--muted);
    }
    
    .stat-card {
        height: 100%;
    }
    
    .stat-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        background: var(--primary-light);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .stat-icon i {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 24px;
        font-weight: 700;
        padding: 10px 0 0;
        line-height: normal;
    }
    
    .analytics-card {
        margin-bottom: 20px;
    }
    
    .analytics-label {
        color: var(--muted);
    }
    
    .analytics-value {
        color: var(--primary);
        font-size: 20px;
        font-weight: 700;
    }
    /* ==========================================
PREVIEW IMAGE / VIDEO
========================================== */
    
    .usageimgpreview,
    .usagevideopreview {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border: 1px solid var(--border);
        background: #fff;
    }
    
    .iconPreview {
        position: absolute;
        width: 32px;
        height: 32px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 0px;
        align-items: center;
        color: #7C3AED;
        z-index: 999;
        margin-bottom: 69px;
    }
    /* ==========================================

PREVIEW BUTTONS
========================================== */
    
    .iconPreview i {
        font-size: 14px;
    }
    /* ==========================================
MOBILE LIST
========================================== */
    
    .mobile-list {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .mobile-item:last-child {
        border-bottom: none;
    }
    
    .mobile-item-content {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-item-title {
        font-size: 15px;
        font-weight: 600;
    }
    
    .mobile-item-sub {
        font-size: 13px;
        color: var(--muted);
        margin-top: 4px;
    }
    
    .thumbnail {
        height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logoPreview,
    .generatedPreview {
        max-width: 100%;
        max-height: 200px;
        display: none;
    }
    
    .editlogoPreview,
    .editgeneratedPreview {
        max-width: 100%;
        max-height: 200px;
    }
    
    .brandlogopreview {
        display: none;
        max-height: 120px;
        border: 1px solid #ddd;
        padding: 5px;
    }
    
    .editbrandlogopreview {
        max-height: 120px;
        border: 1px solid #ddd;
        padding: 5px;
    }
    
    .thumb {
        width: 100px;
        /* height: 100px; */
        object-fit: cover;
    }
    
    @media (max-width: 768px) {
        .mobile-item {
            position: relative;
        }
        .thumb {
            object-fit: cover;
            border-radius: 12px;
        }
        .usageimgpreview,
        .usagevideopreview {
            width: 90px;
            height: 90px;
            object-fit: cover;
            border: 1px solid var(--border);
            background: #fff;
        }
    }
    /* ==========================================
SMALL MOBILE
========================================== */
    
    @media (max-width: 480px) {
        .page-title {
            font-size: 22px !important;
        }
        .hero-title {
            font-size: 24px;
        }
        .credit-badge {
            font-size: 11px;
            padding: 6px 8px;
        }
        .media-item {
            width: 40% !important;
            padding: 10px !important;
            position: relative !important;
        }
        .recentlyusagevideo {
            width: 100% !important;
            cursor: pointer !important;
            height: 200px !important;
            object-fit: cover !important;
            border-radius: 6px !important;
        }
        .recently-btn-play-video {
            position: absolute !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            width: 35px !important;
            height: 35px !important;
            border: none !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            z-index: 10 !important;
            opacity: 0.6 !important;
        }
        .recentlyusagevideo {
            width: 100% !important;
            cursor: pointer !important;
            height: 200px !important;
            object-fit: cover !important;
            border-radius: 6px !important;
        }
    }
    /* app file  */
    
    video.preview-media {
        height: 130px;
        width: -webkit-fill-available;
    }
    
    .output-img {
        height: 145px!important;
        width: 110px!important;
    }
    
    .sidebar-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        border-top: 1px solid #ddd;
        background: #fff;
        height: 110px;
    }
    
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 72px;
        background: #fff;
        border-top: 1px solid var(--border);
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        z-index: 1200;
        gap: 10px;
        padding: 0 10px;
    }
    
    .bottom-nav-item i {
        font-size: 18px;
    }
    
    .bottom-nav-item.active {
        color: var(--primary);
    }
    
    .modal.fade {
        opacity: 1 !important;
    }
    
    .modal.fade.in {
        opacity: 1 !important;
    }
    
    .modal.fade .modal-dialog {
        -webkit-transform: translate(0, 0) !important;
        transform: translate(0, 0) !important;
    }
    
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .credit-badge {
        font-size: 14px!important;
        padding: 8px 6px !important;
        background: linear-gradient(135deg, #7C3AED, #A855F7);
        border-radius: 0;
    }
    /* =========================================================
SIDEBAR
========================================================= */
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 260px;
        height: 100vh;
        background: #fff;
        border-right: 1px solid var(--border);
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }
    
    .logo-area {
        padding: 24px;
        border-bottom: 1px solid var(--border);
    }
    
    .logo-wrap {
        display: flex;
        align-items: center;
        gap: 14px;
    }
    
    .logo-icon {
        width: 52px;
        height: 52px;
        border-radius: 10px;
        background: linear-gradient(135deg, #7C3AED, #A855F7);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        flex-shrink: 0;
    }
    
    .logo-title {
        font-size: 20px;
        font-weight: 700;
    }
    
    .logo-sub {
        color: var(--muted);
        font-size: 12px;
    }
    .custom-sidebar-menu {
        flex: none !important;
        height: calc(100% - 210px) !important;
        overflow-y: auto !important;
    }
    .custom-user-menu{
        height: calc(100% - 240px) !important;
    }
    .sidebar-menu {
        padding: 15px;
        flex: 1;
    }
    
    .menu-item {
        display: flex;
        align-items: center;
        gap: 14px;
        color: #374151;
        padding: 10px 14px;
        border-radius: 8px;
        margin-bottom: 5px;
        transition: .3s;
        font-weight: 600;
    }
    .menu-item:last-child{
        margin-bottom: 0;
    }
    
    .menu-item:hover {
        background: var(--primary-light);
        color: var(--primary);
        text-decoration: none;
    }
    
    .menu-item.active {
        background: var(--primary-light);
        color: var(--primary);
        font-weight: 900;
    }
    
    .logout-wrap {
        border-top: 1px solid var(--border);
        padding: 20px;
    }
    /* =========================================================
CONTENT LAYOUT
========================================================= */
    
    .content {
        margin-left: 260px;
        min-height: 100vh;
        transition: all .3s ease;
    }
    
    .overlay {
        display: none;
    }
    /* =========================================================
DESKTOP
========================================================= */
    
    @media (min-width:500px) {
        .media-item {
            width: 20% !important;
            padding: 10px !important;
            position: relative !important;
        }
        .recentlyusagevideo {
            width: 80% !important;
            cursor: pointer !important;
            height: 200px !important;
            object-fit: cover !important;
            border-radius: 6px !important;
        }
    }
    
    @media (min-width: 992px) {
        .sidebar {
            left: 0 !important;
        }
        .content {
            margin-left: 260px;
        }
        .mobile-bottom-nav {
            display: none !important;
        }
        .recentlyusagevideo {
            width: 80%;
            cursor: pointer;
            height: 200px;
            object-fit: cover;
            border-radius: 6px;
        }
    }
    /* =========================================================
MOBILE SIDEBAR
========================================================= */
    @media(min-width: 767px) and (max-width: 1200px){
        #previewBox,
        .bgthemepreview,
        .framepreview{
            width: 100% !important;
            object-fit: contain !important;
            object-position: top !important;
        }
    }    
    @media (max-width: 991px) {
        .sidebar {
            left: -260px;
            width: 260px;
            transition: all .3s ease;
            z-index: 2000;
            display: none;
        }
        .sidebar.show {
            left: 0;
        }
        .logo-title,
        .logo-sub,
        .menu-item span {
            display: block;
        }
        .menu-item {
            justify-content: flex-start;
        }
        .overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .45);
            z-index: 1500;
            display: none;
        }
        .overlay.show {
            display: block;
        }
        .main-content-area {
            padding-bottom: 90px;
        }
        .page-title {
            font-size: 28px;
        }
        img.preview-media {
            height: 145px!important;
            width: 100px !important;
        }
        .usagevideo {
            width: 100% !important;
            cursor: pointer !important;
            height: 200px !important;
            object-fit: cover;
            border-radius: 6px;
        }
        .media-item {
            width: 50%;
            padding: 10px;
            position: relative;
        }
        .recentlyusagevideo {
            width: 80%;
            cursor: pointer;
            height: 200px;
            object-fit: cover;
            border-radius: 6px;
        }
        .btn-play-video {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 35px;
            height: 35px;
            border: none;
            border-radius: 50% !important;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            opacity: 0.6 !important;
        }
        .recently-btn-play-video {
            position: absolute;
            top: 50%;
            left: 40%;
            transform: translate(-50%, -50%);
            width: 35px;
            height: 35px;
            border: none;
            border-radius: 50% !important;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            opacity: 0.6 !important;
        }
        .content {
            margin-left: 0 !important;
            width: 100%;
        }
        .mobile-topbar {
            display: block !important;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: #fff;
            padding: 12px 15px;
            border-bottom: 1px solid var(--border);
            z-index: 1200;
            box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
        }
        .credit-profile {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .credit-badge {
            border-radius: 0.375rem;
        }
        .mobile-logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .mobile-topbar .logo-icon {
            width: 42px;
            height: 42px;
            font-size: 18px;
        }
        .mobile-topbar .logo-title,
        .mobile-topbar .logo-sub {
            display: block !important;
        }
        .main-content-area {
            padding-top: 115px;
            padding-bottom: 90px;
        }
        .mobile-bottom-nav {
            position: fixed;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 72px;
            background: #fff;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 1200;
        }
        .bottom-nav-item {
            display: inline-grid;
            align-items: center;
            gap: 4px;
            color: var(--muted);
            font-size: 11px;
            text-decoration: none;
            text-align: center;
            line-height: normal;
        }
        .profile-dropdown {
            position: relative;
        }
        .profile-menu {
            right: 0;
            top: 55px;
            position: absolute;
            z-index: 1300;
        }
        .credit-badge {
            font-size: 12px !important;
            padding: 6px 8px !important;
        }
        .wallet-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
        }
        .wallet-icon {
            width: 42px !important;
            height: 42px !important;
            font-size: 22px !important;
            border-radius: 16px !important;
        }
        .form-card {
            padding: 20px;
        }
        .prompt-card {
            padding: 18px;
        }
    }
    /* =========================
MOBILE TOPBAR
========================= */
    /* Desktop */
    
    .mobile-topbar,
    .mobile-bottom-nav {
        display: none;
    }
    /* Mobile */
    /* forgot password */
    
    .auth-page {
        min-height: 100vh;
        background: radial-gradient(circle at top left, #a855f7 0%, transparent 30%), radial-gradient(circle at bottom right, #7c3aed 0%, transparent 30%), linear-gradient(135deg, #f8f7fc 0%, #f3e8ff 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
        overflow: hidden;
        position: relative;
    }
    
    .auth-page::before {
        content: '';
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(124, 58, 237, .08);
        top: -180px;
        right: -120px;
    }
    
    .auth-page::after {
        content: '';
        position: absolute;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: rgba(168, 85, 247, .08);
        bottom: -140px;
        left: -120px;
    }
    
    .auth-wrapper {
        width: 100%;
        max-width: 460px;
        position: relative;
        z-index: 2;
    }
    
    .auth-card {
        background: rgba(255, 255, 255, .78);
        backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: 32px;
        padding: 36px 28px;
        box-shadow: 0 20px 50px rgba(124, 58, 237, .14);
    }
    
    .auth-logo {
        text-align: center;
        margin-bottom: 28px;
    }
    
    .logo-circle {
        width: 82px;
        height: 82px;
        margin: auto;
        border-radius: 26px;
        background: linear-gradient(135deg, #7c3aed, #8b5cf6, #a855f7);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 34px;
        box-shadow: 0 15px 35px rgba(124, 58, 237, .3);
    }
    
    .auth-title {
        font-size: 34px;
        font-weight: 800;
        margin-top: 20px;
        color: #111827;
    }
    
    .auth-subtitle {
        color: #6B7280;
        font-size: 15px;
        line-height: 1.7;
        margin-top: 10px;
    }
    
    .info-box {
        background: #f3e8ff;
        border: 1px solid #e9d5ff;
        border-radius: 18px;
        padding: 14px 16px;
        margin-bottom: 24px;
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }
    
    .info-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: #fff;
        color: #7c3aed;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .info-text {
        font-size: 13px;
        line-height: 1.6;
        color: #6B7280;
    }
    
    .input-group-custom {
        position: relative;
        margin-bottom: 20px;
    }
    
    .input-icon {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #9CA3AF;
        z-index: 2;
    }
    
    .input-group-custom .form-control {
        height: 58px;
        border-radius: 18px;
        border: 1px solid #E5E7EB;
        padding-left: 52px;
        font-size: 15px;
    }
    
    .input-group-custom .form-control:focus {
        border-color: #7c3aed;
        box-shadow: 0 0 0 .15rem rgba(124, 58, 237, .15);
    }
    
    .btn-submit {
        width: 100%;
        height: 58px;
        border: none;
        border-radius: 18px;
        background: linear-gradient(135deg, #7c3aed, #8b5cf6, #a855f7);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        transition: .3s;
        box-shadow: 0 12px 30px rgba(124, 58, 237, .22);
    }
    
    .btn-submit:hover {
        transform: translateY(-2px);
        color: #fff;
    }
    
    .auth-links {
        margin-top: 24px;
        text-align: center;
    }
    
    .back-login {
        color: #7c3aed;
        font-weight: 600;
        text-decoration: none;
    }
    
    .auth-footer {
        margin-top: 24px;
        text-align: center;
        color: #6B7280;
        font-size: 13px;
    }
    
    .text-danger {
        font-size: 13px;
        margin-top: 5px;
        display: block;
    }
    /* ==========================================
CATEGORY PAGE UI
========================================== */
    
    .card-box {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 24px;
        margin-bottom: 24px;
        box-shadow: var(--shadow);
    }
    /* Buttons */
    
    .btn-primary-custom {
        background: linear-gradient(135deg, var(--primary), #A855F7) !important;
        border: none !important;
        color: #fff !important;
        border-radius: 8px !important;
        padding: 8px 10px !important;
        font-weight: 600 !important;
        transition: .3s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        box-shadow: 0 8px 20px rgba(124, 58, 237, .18) !important;
    }
    
    .btn-primary-custom:hover {
        color: #fff;
        background: linear-gradient(135deg, var(--primary-hover), #9333EA);
    }
    
    .btn-light-custom {
        background: #F9FAFB;
        border: 1px solid var(--border);
        color: #374151;
        border-radius: 8px;
        padding: 8px 10px;
        font-weight: 600;
        transition: .3s;
    }
    
    .btn-light-custom:hover {
        background: var(--primary-light);
        color: var(--primary);
    }
    /* footer  */
    
    .footer {
        margin-top: 10px;
    }
    /* Search Box */
    
    .input-group {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
    }
    
    .input-group-text {
        border: none !important;
        color: var(--muted);
        background: #fff !important;
    }
    
    .input-group .form-control {
        border: none !important;
        box-shadow: none !important;
        font-size: 14px;
    }
    
    .input-group .form-control:focus {
        box-shadow: none !important;
    }
    
    .input-group .btn {
        border-radius: 0 !important;
    }
    /* Table */
    
    .table {
        margin-bottom: 0;
    }
    
    .table thead th {
        background: #FAFAFC;
        color: #374151;
        font-weight: 700;
        font-size: 14px;
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    
    .table tbody td {
        padding: 18px 16px;
        vertical-align: middle;
        border-color: var(--border);
        font-size: 14px;
    }
    
    .table tbody tr {
        transition: .2s;
    }
    
    .table tbody tr:hover {
        background: #FCFBFF;
    }
    /* Action Buttons */
    
    .btn-outline-primary {
        border-radius: 10px;
        width: 38px;
        height: 38px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #C4B5FD;
        color: var(--primary);
    }
    
    .btn-outline-primary:hover {
        background: var(--primary);
        color: #fff;
    }
    
    .btn-outline-danger {
        border-radius: 10px;
        width: 38px;
        height: 38px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-outline-danger:hover {
        color: #fff;
    }
    /* Empty State */
    
    .table .text-muted {
        padding: 30px 0;
        font-size: 15px;
    }
    /* Pagination */
    
    .pagination {
        gap: 8px;
    }
    
    .pagination .page-link {
        border-radius: 12px;
        border: 1px solid var(--border);
        color: var(--text);
        min-width: 42px;
        text-align: center;
    }
    
    .pagination .active .page-link {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
    
    .pagination .page-link:hover {
        background: var(--primary-light);
        color: var(--primary);
    }
    
    .stat-card div:nth-child(3) {
        font-size: 16px;
        font-weight: 500;
    }
    /* Responsive */
    
    @media (max-width: 768px) {
        .main {
            padding: 15px;
        }
        .card-box {
            padding: 18px;
            border-radius: 18px;
        }
        .d-flex.justify-content-between {
            align-items: center !important;
            gap: 15px;
            flex-wrap: wrap;
        }
        .input-group .btn {
            width: 100px;
            border-radius: 0 !important;
        }
        .table-responsive {
            overflow-x: auto;
        }
        .auth-page {
            padding: 18px;
        }
        .auth-card {
            border-radius: 28px;
            padding: 28px 22px;
        }
        .auth-title {
            font-size: 28px;
        }
    }
    /* ==========================================
ADD CATEGORY PAGE
========================================== */
    
    .wallet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .wallet-title-wrap {
        display: flex;
        align-items: center;
        gap: 18px;
    }
    
    .wallet-icon {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        background: linear-gradient(135deg, #7C3AED, #A855F7);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 26px;
        flex-shrink: 0;
    }
    
    .form-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 30px;
        box-shadow: var(--shadow);
    }
    
    .section-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 20px;
        color: var(--text);
    }
    
    .section-divider {
        height: 1px;
        background: var(--border);
        margin: 35px 0;
    }
    
    .prompt-card {
        background: #FAFAFC;
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 22px;
    }
    
    .form-label {
        font-weight: 600;
        color: var(--text);
        margin-bottom: 8px;
    }
    
    .required {
        color: #EF4444;
    }
    
    .form-control {
        border: 1px solid var(--border);
        border-radius: 8px;
        min-height: 40px;
        box-shadow: none !important;
    }
    
    textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }
    
    .form-control:focus {
        border-color: #7C3AED;
        box-shadow: 0 0 0 .15rem rgba(124, 58, 237, .15) !important;
    }
    
    .img-video-preview,
    .reel-preview {
        height: 130px;
        width: 150px;
        left: 10px;
        cursor: pointer;
    }
    
    .form-label {
        display: block;
        margin-bottom: 8px;
    }
    
    .checkbox-wrap {
        margin-top: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }
    
    .add-btn,
    .btn-success,
    .btn-danger {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-success {
        background: #10B981;
        border: none;
        color: #fff;
    }
    
    .btn-danger {
        background: #EF4444;
        border: none;
        color: #fff;
    }
    
    .btn-success:hover,
    .btn-danger:hover {
        color: #fff;
        transform: translateY(-2px);
    }
    
    .action-cell,
    .video-action-cell {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
    
    @media (max-width: 768px) {
        .prompt-card .row>div {
            margin-bottom: 15px;
        }
        .action-cell,
        .video-action-cell {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .img-video-preview,
        .reel-preview {
            height: 160px;
            width: auto;
            margin-top: 30px;
            left: 10px;
            cursor: pointer;
            display: block;
        }
        .filter-buttons {
            flex-direction: column;
        }
    }
    
    .hero-card,
    .stat-card,
    .section-card,
    .analytics-card,
    .form-card,
    .filter-card,
    .table-card,
    .card-box {
        padding: 18px;
        border-radius: 18px;
    }
    /* usage page  */
    
    .filter-buttons {
        display: flex;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }
    
    .thumb-group {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .thumb-item {
        text-align: center;
        font-size: 13px;
        color: var(--muted);
    }
    
    .video-preview-wrapper {
        position: relative;
        display: inline-block;
    }
    /* dashboard file */
    
    .media-row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .media-item {
        width: 20%;
        padding: 10px;
        position: relative;
    }
    
    .usagevideo {
        /* width: 80%; */
        cursor: pointer;
        height: 200px;
    }
    
    .recentlyusagevideo {
        width: 80%;
        cursor: pointer;
        height: 200px;
        object-fit: cover;
        border-radius: 6px;
    }
    
    .usageimg {
        width: 100%;
        height: 180px;
        cursor: pointer;
        object-fit: contain;
        /* border: 2px solid #eee; */
        object-position: left;
    }
    /* user side
    reel generator */
    
    .error {
        color: red;
        font-size: 13px;
        margin-top: 5px;
        display: block;
        font-weight: 400;
    }
    
    .is-invalid {
        border: 1px solid red !important;
    }
    
    .prompt-card {
        cursor: pointer;
        border: 2px solid #eee;
        transition: 0.2s;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
    }
    
    .prompt-card:hover {
        border-color: var(--primary-hover);
    }
    
    .prompt-check {
        display: block !important;
        width: 20px;
        height: 20px;
        margin: 0 !important;
    }
    
    .prompt-media {
        width: 100%;
        height: 180px;
        object-fit: contain;
        border-radius: 8px;
    }
    
    .prompt-card.active {
        border: 2px solid #a151f5;
        border-radius: 8px;
    }
    
    .choose-media-file {
        border: 1px dashed #CECECE;
        margin-top: 20px;
        padding: 15px;
        border-radius: 14px;
    }
    
    .choose-media-file .choose-media-file-img-content h3 {
        font-size: 14px;
        font-weight: 600;
        color: var(--Text-Main);
        margin: 8px 0 0;
    }
    
    .choose-media-file .choose-media-file-img-content p {
        margin: 0;
        font-size: 14px;
    }
    
    .choose-media-file .choose-media-file-img-content .upload-button {
        background-color: #FFFFFF;
        border: 1px solid #C5C5C5;
        border-radius: 10px;
        padding: 6px 10px;
        margin-top: 10px;
        cursor: pointer;
    }
    
    .righttext {
        float: right;
        background-color: #a352f6;
        color: #FFF;
        padding: 5px 8px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    /* image generation  */
    
    .cm-brand-img-box img {
        max-height: 50px;
    }
    
    .cm-brand-img-box {
        min-height: 50px;
    }
    
    .form-check input[type="radio"] {
        display: inline-block;
    }
    /* credit usage  */
    
    .user-input-col {
        display: flex;
        gap: 5px;
        justify-content: space-around;
    }
    
    img.preview-media {
        height: 145px;
        width: auto;
    }
    
    .loader-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 145px;
        opacity: 0.7;
    }
    
    .upload-box {
        border: 2px dashed var(--border);
        border-radius: 18px;
        padding: 40px;
        text-align: center;
        background: #fafafa;
    }
    
    .upload-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        background: var(--primary-light);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
        font-size: 28px;
    }
    
    .brand-image-card {
        display: block;
        cursor: pointer;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .brand-image-card input[type="radio"] {
        display: none;
    }
    
    .brand-image-card .image-wrapper {
        border: 2px solid #ddd;
        border-radius: 10px;
        padding: 8px;
    }
    
    .brand-image-card .image-wrapper {
        padding: 8px;
    }
    
    .brand-image-card img {
        width: 100%;
        height: 180px;
        object-fit: contain;
        border-radius: 8px;
    }
    
    .brand-image-card input[type="radio"]:checked+.image-wrapper {
        border-color: #337ab7;
        box-shadow: 0 0 10px rgba(51, 122, 183, .4);
    }
    
    #previewBox {
        position: relative;
        display: inline-block;
    }
    
    #brandLogoPreview {
        position: absolute;
        z-index: 999;
        display: flex;
        flex-direction: column;
    }
    
    .preview-logo {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
    
    .themepreview {
        height: 150px;
    }
    
    .themephoto {
        height: 200px;
    }
    
    .frame-option {
        display: block;
        margin-bottom: 12px;
        cursor: pointer;
    }
    
    .frame-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .form-check {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .theme-option {
        margin-bottom: 12px;
        cursor: pointer;
    }
    
    .color-option {
        margin-bottom: 12px;
        cursor: pointer;
    }
    
    .colorpreview {
        height: 70px;
        width: 70px;
    }
    
    .colorimagepreview {
        height: 50px;
        width: 50px;
    }
    
    .bgthemepreview {
        width: 250px;
        height: 500px;
        object-fit: cover;
        z-index: 1;
        left: 0;
    }
    
    .framepreview {
        width: 250px;
        height: 500px;
        object-fit: cover;
        z-index: 3;
        left: 0
    }
    
    .uploadedpreview {
        width: 70%;
        height: 70%;
        object-fit: cover;
        display: none;
        z-index: 2;
    }
    .form-check input[type="radio"],
    .form-check-input[type=checkbox] {
        border-color: #823dee !important;
    }
    .form-check-input:checked {
        background-color: #a151f5 !important;
        border-color: #ffffff !important;
    }
    .card {
        border-radius: 18px;
    }
    .card-header {
        padding: 10px;
    }
    .prompt-card h4{
        font-size: 15px;
        line-height: 22px;
    }
    .form-check-input[type=radio] {
        border-color: #a151f5;
    }
    .modal .modal-content{
        border-radius: 8px !important;
    }
    .modal .modal-content .modal-header{
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .modal-header .close{
        margin: 0 !important;
    }