/* GLOBAL RESET & ROOT COLORS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #111317;
    --primary-color-light: #1f2125;
    --primary-color-extra-light: #2a2c31;
    --secondary-color: #696fdd;
    --secondary-color-dark: #a3a8f0;
    --text-light: #b7b9bc;
    --white: #ffffff;
    --background-gradient: linear-gradient(135deg, #babefd 0%, #42479e 100%);
    --glass-blur: rgba(255, 255, 255, 0.05);
}

/* BODY */
body {
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    overflow-y: auto;
    overflow-x: hidden;
}

.main {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
}

.main a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    font-size: 20px;
    align-items: center;
    cursor: pointer;
    background: var(--primary-color-extra-light);
    padding: 7px 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.main a:hover {
    background: var(--secondary-color);
}

.main h1 {
    color: var(--text-light);
    text-align: center;
    font-size: 18px;
}

/* WRAPPER */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 100px;
    gap: 50px;
    width: 100%;
}

/* SELECT GIFT CARD */
.cards {
    width: 100%;
}

.card-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    height: 100vh;
    backdrop-filter: blur(4px);
}

/* Scrollbar */
.card-wrapper::-webkit-scrollbar {
    width: 2px;
}

.card-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 50px;
}

/* HEADER */
.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 20px;
    gap: 20px;
    font-weight: bold;
    color: var(--text-light);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* CURRENCY SELECT */
.setting-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 0;
    transition: background 0.3s ease-in-out;
}

.setting-item label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.setting-item select {
    background: var(--primary-color-extra-light);
    color: var(--white);
    border: 1px solid var(--secondary-color);
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 5px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px transparent;
    border-left: 5px solid var(--secondary-color);
    border-right: 5px solid var(--secondary-color);
}

.setting-item select:hover {
    background: var(--primary-color);
    border-color: var(--secondary-color-dark);
}

.setting-item select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 4px var(--secondary-color);
}


.currency-options {
    display: none;
    position: absolute;
    width: 100%;
    top: 100%;
    background: var(--primary-color-extra-light);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 8px 0;
    z-index: 10;
}

.currency-options li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 500;
    color: var(--white);
    transition: background 0.2s ease;
}

.currency-options li:hover {
    background: var(--secondary-color);
}

/* CARD LIST */
.card-list {
    list-style: none;
    padding: 0;
}

.card-list li {
    background: var(--primary-color-extra-light);
    display: flex;
    align-items: center;
    padding: 10px 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card-list li:hover {
    transform: translateY(-3px);
}

.card-list li img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
}

.card-list li span {
    flex: 1;
    font-weight: 600;
    color: var(--white);
    font-size: 14px;
}

.card-list .rate {
    font-size: 13px;
    font-weight: bold;
    color: var(--secondary-color-dark);
}

/* SELL BUTTON */
.sell-btn {
    display: inline-block;
    padding: 6px 18px;
    background: #00c6a9;
    color: var(--white);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sell-btn:hover {
    color: #00c6a9;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 198, 169, 0.5);
}

/* BLUR EFFECT */
.bg__blur {
    position: absolute;
    box-shadow: 0 0 1000px 50px var(--secondary-color);
    z-index: -1;
    position: fixed;
}

.footer__blur {
    bottom: 7rem;
    right: 0;
}







/* CALCULATOR */
.calculator-container {
    background: var(--primary-color-light);
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.6s ease-out;
}

.head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2rem;
}

.head h1 {
    font-size: 20px;
    color: var(--secondary-color-dark);
}

.head p {
    font-size: 14px;
    color: var(--text-light);
}

.calculator-container label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.calculator-container input,
.calculator-container select {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 5px;
    background: var(--primary-color-extra-light);
    color: var(--white);
    font-size: 1rem;
    transition: box-shadow 0.3s ease;

    border-left: 5px solid var(--secondary-color);
    border-right: 5px solid var(--secondary-color);
}

.calculator-container input:focus,
.calculator-container select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.calculator-container button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    background: var(--background-gradient);
    color: var(--white);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.calculator-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(105, 111, 221, 0.4);
}

#result {
    margin-top: 1.5rem;
    font-size: 1.15rem;
    color: #00c6a9;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #00c6a9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}









/* MEDIA QUERY FOR SMALL SCREEN */
@media (max-width: 800px) {
    .main {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 20px;
        background: var(--primary-color-light); 
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(10px);
      }
      
      .main a {
        background: var(--background-gradient);
    }

    .main h1 {
        font-size: 14px;
    }

    .main .none {
        display: none;
    }

    .page-wrapper {
        flex-direction: column-reverse;
        padding: 0 10px;
        gap: 40px;
        width: 100%;
    }

    .card-header {
        display: flex;
        align-items: start;
        justify-content: start;
        font-size: 13px;
        padding: 8px 0px;
        margin-bottom: 0px;
    }

    .card-wrapper {
        height: auto;
        padding-right: 0px;
        overflow-y: visible;
        padding:  0px;
    }

    .card-wrapper::-webkit-scrollbar {
        display: none;
    }

    .calculator-container {
        margin-top: 5rem;
        padding: 2rem 10px;
    }

    .head p {
        font-size: 10px;
        font-weight: bold;
        color: var(--text-light);
    }

    
.head h1 {
    font-size: 18px;
}
}
