* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #ececf7;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile {
    position: relative;
    top: 50px;
    width: 390px;
    height: 100vh;
    max-height: 844px;
    overflow: scroll;
    background: linear-gradient(180deg, #fbfbff 0%, #f5f7ff 100%);
}

@media(max-width:480px) {

    .mobile {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        margin-bottom: 50px;
    }

}

.background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: .18;
}

.blob1 {
    width: 220px;
    height: 220px;
    background: #7b61ff;
    top: -60px;
    left: -80px;
}

.blob2 {
    width: 180px;
    height: 180px;
    background: #42d6ff;
    bottom: 120px;
    right: -70px;
}

.blob3 {
    width: 120px;
    height: 120px;
    background: #9d8bff;
    bottom: 280px;
    left: -40px;
}

.spark {
    position: absolute;
    width: 18px;
    height: 4px;
    background: #45d7ff;
    border-radius: 50px;
    transform: rotate(30deg);
}

.spark::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 4px;
    width: 12px;
    height: 4px;
    background: inherit;
    border-radius: 50px;
}

.spark1 {
    right: 42px;
    top: 230px;
}

.spark2 {
    left: 0px;
    top: 420px;
}

.spark3 {
    right: 60px;
    bottom: 140px;
}

header {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    color: #444;
    font-size: 16px;

}

.logo {
    text-align: center;
    margin-right: -20px;
}

.logo h1 {
    font-size: 44px;
    font-weight: 800;
    color: #21243d;
    letter-spacing: -2px;
    line-height: 1;
}

.logo span {
    color: #6856ff;
}

.logo p {
    margin-top: 4px;
    color: #84879b;
    font-size: 14px;
    font-weight: 500;
}

.premium {
    border: none;
    height: 36px;
    padding: 0 8px;
    font-size: 10px;
    border-radius: 30px;
    background: #fff;
    color: #6f58ff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

}

.premium i {
    margin-right: 6px;
}

.hero {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 10px 28px 0;
}

.hero h2 {
    color: #20233d;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
}

.hero h2 span {
    color: #6856ff;
}

.hero p {
    margin-top: 18px;
    color: #7a7d95;
    font-size: 14px;
    width: 80%;
    margin: 0px auto;
    line-height: 28px;
}

.scanner-card {
    position: relative;
    z-index: 5;
    margin: 34px 22px 0;
    height: 235px;
    border-radius: 34px;
    background: linear-gradient(135deg, #6f57ff, #4b88ff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 30px 45px rgba(90, 95, 255, .35);
    overflow: hidden;
}

/* .camera-btn{
    
} */

.camera-circle {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .18);
}

.camera-circle i {
    color: #6856ff;
    font-size: 42px;
}

.scanner-card h3 {
    margin-top: 22px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.scanner-card p {
    margin-top: 8px;
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
}

.corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, .45);
}

.tl {
    top: 22px;
    left: 22px;
    border-right: none;
    border-bottom: none;
    border-radius: 12px 0 0 0;
}

.tr {
    top: 22px;
    right: 22px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 12px 0 0;
}

.bl {
    bottom: 22px;
    left: 22px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 12px;
}

.br {
    bottom: 22px;
    right: 22px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 12px 0;
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 18, .72);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}
/* From Uiverse.io by satyamchaudharydev */ 
.loader {
    display: block;
    --height-of-loader: 4px;
    --loader-color: #0071e2;
    width: 130px;
    height: var(--height-of-loader);
    border-radius: 30px;
    background-color: rgba(0,0,0,0.2);
    position: relative;
  }
  
  .loader::before {
    content: "";
    position: absolute;
    background: var(--loader-color);
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: 30px;
    animation: moving 1s ease-in-out infinite;
    ;
  }
  
  @keyframes moving {
    50% {
      width: 100%;
    }
  
    100% {
      width: 0;
      right: 0;
      left: unset;
    }
  } 

/* .loader-container {
    width: 280px;
    text-align: center;
    animation: popup .35s ease;
}

.loader-ring {
    position: relative;
    width: 150px;
    height: 150px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-ring::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(#6D5BFF,
            #5F8CFF,
            #45D6FF,
            #8A5CFF,
            #6D5BFF);

    animation: ringRotate 1.4s linear infinite;

}

.loader-center {
    position: relative;
    z-index: 2;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: #161822;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, .05);
}

.loader-center span {
    color: #fff;
    font-size: 34px;
    font-weight: 700;
}

#loaderTitle {
    margin-top: 28px;
    color: #fff;
    font-size: 23px;
    font-weight: 600;
}

#quote {
    margin-top: 12px;
    color: #d7d7d7;
    font-size: 15px;
    line-height: 25px;
}

@keyframes ringRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes popup {

    from {
        opacity: 0;
        transform: scale(.85);
    }

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

} */

/*=========================
    LANGUAGE CARD
=========================*/

.language-box {
    position: relative;
    z-index: 5;
    margin: 24px 20px 0;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(34, 45, 80, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.language-column {
    flex: 1;
}

.language-column span {
    display: block;
    font-size: 11px;
    color: #8a8fa8;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.language-column small {
    display: block;
    margin-top: 10px;
    color: #8f94aa;
    font-size: 10px;
}

.language-select {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 15px;
    background: #f6f7fc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #23263d;

    transition: .25s;
}

.language-select:hover {
    background: #eceffd;
    transform: translateY(-2px);
}

.language-select img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.swap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7058ff, #4f8cff);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;

    transition: .3s;
    flex-shrink: 0;
    box-shadow: 0 12px 25px rgba(90, 100, 255, .30);
}

/* .swap:hover {
    transform: rotate(180deg) scale(1.05);
} */



/*=========================
      RESULT SECTION
=========================*/

.result-section {
    position: relative;
    z-index: 5;
    margin: 30px 20px 105px 20px;
}

.result-section h4 {
    color: #21253e;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.result-card {
    background: #fff;
    border-radius: 22px;
    padding: 18px 10px;
    display: flex;
    gap: 11px;
    align-items: center;
    transition: .3s;
    box-shadow: 0 15px 35px rgba(20, 25, 50, .08);
    border: 2px solid transparent;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(70, 80, 160, .15);
}

.result-card.active {
    border-color: #6d5bff;
    background: linear-gradient(180deg, #f8f7ff, #eef1ff);
}

.result-card .icon {
    width: 58px;
    height: 36px;
    border-radius: 18px;
    background: linear-gradient(135deg, #7058ff, #4f8cff);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    /* margin-bottom: 16px; */
}

.result-card .icon.image {
    width: 78px;
    background: linear-gradient(135deg, #29d2ff, #45e6b3);
}

.result-card h5 {
    color: #22253d;
    font-size: 18px;
    font-weight: 700;
}

.result-card p {
    margin-top: 8px;
    color: #8d92aa;
    font-size: 12px;
    line-height: 22px;
}
.result-card{
    
    transition:.3s;
}

.result-card.active{
    background:linear-gradient(135deg,#6D5BFF,#4F8CFF);
    color:#fff;
    border:2px solid #6D5BFF;
    transform:translateY(-4px);
}

.result-card.active h5,
.result-card.active p{
    color:#fff;
}

.result-card.active .icon{
    background:#fff;
    color:#6D5BFF;
}

.result-card.active .icon i{
    color:#6D5BFF;
}


/*=========================
      BOTTOM NAV
=========================*/

.bottom-nav {
    width: 390px;
    margin: 0 auto;
    position: fixed;
    /* left:18px;
    right:18px; */
    bottom: 0px;
    height: 74px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    /* border-radius:26px; */
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 15px 35px rgba(25, 30, 55, .12);
    z-index: 10;
}

.bottom-nav a {
    flex: 1;
    text-decoration: none;
    cursor:none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #8b90a8;
    transition: .3s;
}

.bottom-nav a i {
    font-size: 22px;
}

.bottom-nav a span {
    font-size: 12px;
    font-weight: 600;
}

.bottom-nav a.active {
    color: #6c59ff;
}

.bottom-nav a:hover {
    color: #6c59ff;
    transform: translateY(-3px);
}



/*=========================
      BUTTON EFFECTS
=========================*/

.icon-btn,
.premium,
.camera-circle,
.language-select,
.swap,
.result-card,
.bottom-nav a {
    transition: all .3s ease;
}

.icon-btn:hover,
.premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
}

.camera-circle:hover {
    transform: scale(1.08);
}

.camera-circle:active,
.icon-btn:active,
.swap:active,
.language-select:active {
    transform: scale(.95);
}



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

.blob {
    animation: floatBlob 9s ease-in-out infinite;
}

.blob2 {
    animation-delay: 2s;
}

.blob3 {
    animation-delay: 4s;
}

@keyframes floatBlob {

    0% {
        transform: translateY(0);
    }

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

    100% {
        transform: translateY(0);
    }

}



/*=========================
     CARD ANIMATIONS
=========================*/

.hero,
.scanner-card,
.language-box,
.result-card {
    animation: fadeUp .7s ease both;
}

.language-box {
    animation-delay: .2s;
}

.result-card:nth-child(1) {
    animation-delay: .35s;
}

.result-card:nth-child(2) {
    animation-delay: .45s;
}

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}
/*=========================
        SETTINGS MENU
=========================*/

.settings-menu{
    position:fixed;
    inset:0;
    background:rgba(8,12,25,.45);
    backdrop-filter:blur(8px);
    z-index:99999;
    visibility:hidden;
    opacity:0;
    transition:.35s;
}

.settings-menu.show{
    visibility:visible;
    opacity:1;
}

.profile-container{
    position:absolute;
    top:0;
    left:-100%;
    width:82%;
    max-width:360px;
    height:100%;
    background:#ffffff;
    display:flex;
    flex-direction:column;
    transition:.35s ease;
    box-shadow:15px 0 40px rgba(0,0,0,.18);
    overflow:hidden;
}

.settings-menu.show .profile-container{
    left:0;
}

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

.settings-header{
    height:90px;
    padding:0 22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:linear-gradient(135deg,#6D5BFF,#4F8CFF);
    color:#fff;
    flex-shrink:0;
}

.settings-header h2{
    font-size:28px;
    font-weight:700;
}

.close-menu{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:18px;
    transition:.3s;
}

.close-menu:hover{
    transform:rotate(90deg);
    background:rgba(255,255,255,.28);
}

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

.menu-list{
    flex:1;
    overflow:auto;
    padding:15px 0 25px;
}

.menu-item{
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px 24px;
    text-decoration:none;
    color:#2b3045;
    transition:.25s;
}

.menu-item:hover{
    background:#f4f6ff;
}

.menu-item.active{
    background:#eef1ff;
    border-left:4px solid #6D5BFF;
}

.menu-item i:first-child{
    width:24px;
    text-align:center;
    font-size:20px;
    color:#6D5BFF;
}

.menu-label{
    flex:1;
    font-size:16px;
    font-weight:600;
}

.arrow{
    color:#a0a4ba;
    font-size:14px;
}

.logout{
    color:#ff4b55;
}

.logout i:first-child{
    color:#ff4b55 !important;
}

.logout:hover{
    background:#fff0f1;
}

/* Scrollbar */

.menu-list::-webkit-scrollbar{
    width:5px;
}

.menu-list::-webkit-scrollbar-thumb{
    background:#d6dbef;
    border-radius:20px;
}
.language-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(6px);
    display:flex;
    justify-content:center;
    align-items:flex-end;
    visibility:hidden;
    opacity:0;
    transition:.3s;
    z-index:99999;
}

.language-modal.show{
    visibility:visible;
    opacity:1;
}

.language-sheet{
    width:100%;
    max-width:390px;
    height:80%;
    background:#fff;
    border-radius:30px 30px 0 0;
    display:flex;
    flex-direction:column;
    animation:sheetUp .3s;
}

@keyframes sheetUp{

from{

transform:translateY(100%);

}

to{

transform:translateY(0);

}

}

.language-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px;
}

.language-header h3{
    font-size:22px;
}

.language-header button{
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:#f2f2f2;
    
}

.search-box{
    margin:0 20px 18px;
    background:#f6f6f6;
    border-radius:15px;
    display:flex;
    align-items:center;
    padding:0 16px;
}

.search-box i{
    color:#777;
}

.search-box input{
    flex:1;
    border:none;
    background:none;
    padding:15px;
    outline:none;
    font-size:15px;
}

.language-list{
    flex:1;
    overflow:auto;
}

.language-item{
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px 22px;
    
    transition:.25s;
}

.language-item:hover{
    background:#f5f7ff;
}

.language-item img{
    width:28px;
    height:28px;
    border-radius:50%;
}

.language-item span{
    font-size:16px;
    font-weight:500;
}


/*=========================
     SCROLLBAR
=========================*/

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #c8cde7;
    border-radius: 20px;
}

/*=========================
        ERROR MODAL
=========================*/

.error-modal{
    position:fixed;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    background:rgba(8,10,20,.45);
    backdrop-filter:blur(10px);
    visibility:hidden;
    opacity:0;
    transition:.3s;
    z-index:999999;
}

.error-modal.show{
    visibility:visible;
    opacity:1;
}

.error-box{
    width:90%;
    max-width:340px;
    background:#fff;
    border-radius:28px;
    padding:35px 28px;
    text-align:center;
    animation:errorPopup .3s ease;
    box-shadow:0 25px 60px rgba(0,0,0,.18);
}

.error-icon{
    width:82px;
    height:82px;
    margin:auto;
    border-radius:50%;
    background:linear-gradient(135deg,#ff5b6a,#ff8a5c);
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:40px;
    box-shadow:0 12px 30px rgba(255,91,106,.35);
}

.error-box h2{
    margin-top:10px;
    color:#23263d;
    font-size:28px;
    font-weight:700;
}

.error-box p{
    margin-top:10px;
    color:#7d8498;
    font-size:16px;
    line-height:28px;
}

#errorText{
    word-break:break-word;
}

#closeError{
    margin-top:10px;
    width:100%;
    height:54px;
    border:none;
    border-radius:16px;
    background:linear-gradient(135deg,#6D5BFF,#4F8CFF);
    color:#fff;
    font-size:17px;
    font-weight:600;
    transition:.3s;
}

#closeError:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(79,140,255,.35);
}

#closeError:active{
    transform:scale(.97);
}

@keyframes errorPopup{

from{
opacity:0;
transform:scale(.82);
}

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

}

.container {
    padding: 20px;
    text-align: center;
    margin: 0px auto;
    max-width: 400px;
}
.container h3{
    font-size:14px;
    color:#fff;
}
.effects-grid {
    display: flex;
    /* justify-content: center; */
    flex-wrap: wrap;
    gap: 20px;
}
  
  /* Card container */
  .effect-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #fff;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 160px;
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
    overflow: hidden;
  }
  
  /* Hover lift */
  .effect-card:hover {
    transform: translateY(-3px);
  }
  
  /* Video styling */
  .effect-video {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
  }
  
  /* Name overlay on video */
  .effect-name {
    /* position: absolute;
    bottom: 0;
    left: 0; */
    width: 100%;
    padding: 5px 0;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    /* background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0)); */
    /* background: #1a1a1a; */
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    border-radius: 0 0 8px 8px;
  }
  /* Remove old button style */
.use-btn {
    font-size: 14px;
    display: none;
  }
  
  .create-card {
    width: 150px;
    height: 150px;
    background: #fff;
    color:black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: absolute;
    z-index: 999;
  }
  
  .create-card:hover {
    background-color: rgb(236, 234, 234);
    transform: scale(1.05);
  }
  
  .create-card .plus {
    font-size: 24px;
    font-weight: 500;
    color: #000;
  }
  
  .create-card p {
    font-size: 12px;
    margin: 0;
    color: #aaa;
  }
/*=========================
      RESPONSIVE
=========================*/

@media(max-width:420px) {

    .logo h1 {
        font-size: 38px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .scanner-card {
        height: 215px;
    }

    .camera-circle {
        width: 92px;
        height: 92px;
    }

    .camera-circle i {
        font-size: 34px;
    }

    .language-box {
        padding: 14px;
    }

    .language-select {
        height: 48px;
        font-size: 11px;
    }
    .result-section{
        margin: 30px 20px 140px 20px;
    }
    .result-card {
        padding: 16px 9px;
    }

    .result-card h5 {
        font-size: 16px;
    }

    .result-card p {
        font-size: 11px;
    }

    .bottom-nav {
        height: 68px;
    }

    .bottom-nav a i {
        font-size: 20px;
    }

}

@media(min-width:768px) {

    body {
        background: #dfe3ef;
    }

    .mobile {
        width: 390px;
        /* height:844px; */
        /* border-radius:30px; */
        box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
    }

}
