/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/*user form*/
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.profile-container h2 {
    text-align: center;
}

.profile-container label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.profile-container input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.profile-container input[type="submit"] {
    background: #ffcc00;
    color: black;
    font-weight: bold;
    padding: 10px;
    margin-top: 20px;
    cursor: pointer;
}
/*User manager menu style*/
.user-menu {
    position: fixed;
    left: 0;
    top: 100px;
    background: black;
    color: white;
    padding: 15px;
    width: 200px;
}

.user-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-bottom: 1px solid white;
}

.user-menu a:hover {
    background: yellow;
    color: black;
}

/* css form */
.custom-account-fields label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.custom-account-fields input,
.custom-account-fields select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}
.challenge-box {
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 30px;
    background: #FFD600;
      box-shadow: 0px 4px 4px 0px #00000040;
      background: linear-gradient(90deg, #C0A644 0.57%, #C8B256 3.05%, #CFBB64 4.68%, #DACB7D 7.63%, #E0D389 9.71%, #E3D78F 10.78%, #EAE19F 14.15%, #E5DA96 19.77%, #DBCA83 26.19%, #D7C37B 29.05%, #D0B96F 34.78%, #D6C479 42.93%, #EFE8A8 60.1%, #F4EFB1 64.7%, #F6F3B6 69.14%, #F4F0B2 72.32%, #F1EBAC 74.24%, #E8DD98 81.53%, #D9C77A 89.02%, #C3AB4E 100%);
}
.countdown-timer {
    color:white;
}
.woocommerce .button.challenge-button {
    background-color: #3490dc;
    color: #fff;
    border-radius: 20px;
    padding: 8px 20px;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 5px;
}
.woocommerce-billing-fields #billing_address_1_field {
    width: 100% !important;
}

.page-wrapper my-account mb
{ 
background: linear-gradient(90deg, #C0A644 0.57%, #C8B256 3.05%, #CFBB64 4.68%, #DACB7D 7.63%, #E0D389 9.71%, #E3D78F 10.78%, #EAE19F 14.15%, #E5DA96 19.77%, #DBCA83 26.19%, #D7C37B 29.05%, #D0B96F 34.78%, #D6C479 42.93%, #EFE8A8 60.1%, #F4EFB1 64.7%, #F6F3B6 69.14%, #F4F0B2 72.32%, #F1EBAC 74.24%, #E8DD98 81.53%, #D9C77A 89.02%, #C3AB4E 100%);
}
.account-user {
    margin-bottom:15px;
    background: linear-gradient(to right, #e0d389, #FCF6BA, #cfbb64, #FBF5B7, #cfbb64) !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #222, #333);
    border-radius: 10px;
    transition: all 0.4s ease;
}

/* Tạo lớp ánh sáng */
.account-user::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
}

/* Khi hover, lớp ánh sáng di chuyển */
.account-user:hover::before {
    animation: shine 0.8s forwards;
}

/* Keyframes di chuyển ánh sáng */
@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

/* Style chung cho cả 2 nút */
.widget_shopping_cart .button.wc-forward {
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.7) 0%, rgba(0, 148, 130, 0.7) 25%, rgba(0, 118, 118, 0.8) 50%, rgba(0, 89, 99, 0.9) 75%, rgba(0, 68, 88, 1) 100%);
    color: #fff !important;
    font-weight: bold;
    border-radius:5px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

/* Hover hiệu ứng bóng mượt */
.widget_shopping_cart .button.wc-forward:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.widget_shopping_cart .button.checkout {
    background: linear-gradient(90deg, #fcf6ba, #c8b256) !important; /* Gradient vàng kim */
    color: #333 !important;
}
.widget_shopping_cart .button.checkout:hover {
    background: linear-gradient(90deg, #c8b256, #fcf6ba) !important; /* Đảo màu vàng ngược */
    transform: scale(1.08);
    text-decoration: none;
}
.nav-dropdown {
    background-color: #000;
    border: 1px solid transparent !important;
    border-radius: 8px;
    background-image:linear-gradient(#000, #000),linear-gradient(to right, #e0d389, #FCF6BA, #cfbb64, #FBF5B7, #cfbb64);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 6px 1px rgba(212, 175, 55, 0.3);
}

.nav-dropdown>li>a{color: white;text-decoration: none !important;}
.nav-dropdown>li>a:hover
{background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-dropdown li.active>a{color:white;}
ul.product_list_widget li a{color: white;}
.header:not(.transparent) .header-nav-main.nav > li > a{text-decoration: none;}

#billing_first_name{display:none;}
/* hidden email 2 */
.woocommerce-form-register .form-row:nth-child(2) {
    display: none !important;
}

#notify-topbar {
    box-shadow: 0px 4px 4px 0px #00000040;
    background: linear-gradient(90deg, #C0A644 0.57%, #C8B256 3.05%, #CFBB64 4.68%, #DACB7D 7.63%, #E0D389 9.71%, #E3D78F 10.78%, #EAE19F 14.15%, #E5DA96 19.77%, #DBCA83 26.19%, #D7C37B 29.05%, #D0B96F 34.78%, #D6C479 42.93%, #EFE8A8 60.1%, #F4EFB1 64.7%, #F6F3B6 69.14%, #F4F0B2 72.32%, #F1EBAC 74.24%, #E8DD98 81.53%, #D9C77A 89.02%, #C3AB4E 100%);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    z-index: 9999;
    padding:5px;
    animation: fadeInNotify 1s ease forwards;
    transition: all 0.4s ease;
    text-align:center;
}
#notify-topbar a{color: black !important;text-decoration: none !important;}

/* Khi hover Notify Topbar */
#notify-topbar :hover {
    transform: scale(1.02); /* Phóng nhẹ hơn */
}
#notify-topbar a:hover{color: black;}
/* Tạo lớp ánh sáng */
#notify-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
}

/* Khi hover, bóng loáng di chuyển */
#notify-topbar:hover::before {
    animation: shineTopbar 1s forwards;
}

/* Keyframes cho hiệu ứng bóng chạy */
@keyframes shineTopbar {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}


/* Hiệu ứng xuất hiện: Fade In */
@keyframes fadeInNotify {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.button-silver {
    background: linear-gradient(to right, #bfc2c7, #f5f5f5, #b3b6ba, #e9e9e9, #b3b6ba);
    color: #333;
    border: 1px solid #a5a5a5;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7),
                0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.button-silver::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.5s ease;
    pointer-events: none;
}

.button-silver:hover::before {
    top: -100%;
    left: 100%;
}

.xchallenge-lost-password-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 15px;
}

.xchallenge-lost-password-box {
  background: #2d2d2d;
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  color: #fff;
}

.lost-password-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.lost-password-title .highlight {
  background: linear-gradient(to right, #e0d389, #fff3b0, #c9b061);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lost-password-description {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 30px;
}

.form-group {
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #f0e6b2;
  font-size: 14px;
}

.woocommerce-Input.input-text {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  border-radius: 6px;
  border: none;
  background: #f2f2f2;
  color: #222;
  box-sizing: border-box;
}

.button-gold {
  background: linear-gradient(to right, #e0d389, #FCF6BA, #cfbb64, #FBF5B7, #cfbb64);
  color: #3e2e0e;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4),
              0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.button-gold:hover {
  filter: brightness(1.05);
}

.lost-password-footer {
  margin-top: 30px;
}

.back-to-login {
  color: #f9d57e;
  font-weight: 500;
  text-decoration: none;
}

/*reg form css*/
.custom-register-wrapper {
    max-width: 420px;
    margin: 50px auto;
    background: #2c2c2c;
    border-radius: 15px;
    padding: 40px 30px;
    color: #fff;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.custom-register-wrapper h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #f5d88b;
}

.custom-register-wrapper label {
    display: block;
    text-align: left;
    margin: 15px 0 5px;
    font-weight: bold;
    color: #f5d88b;
}

.custom-register-wrapper input.input-text {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 15px;
}

.button-bronze {
    background: linear-gradient(to right, #a67c52, #f5deb3);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
}

.button-bronze:hover {
    background: linear-gradient(to right, #f5deb3, #a67c52);
    box-shadow: 0 6px 15px rgba(255,255,255,0.3);
    color: #000;
}

.social-login-wrapper {
    margin: 30px 0 10px;
}

.social-login-wrapper .nsl-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-link, .back-link {
    margin-top: 20px;
    font-size: 14px;
}

.login-link a, .back-link a {
    color: #f5c56b;
    text-decoration: none;
}

.gold-icon {
    margin-right: 5px;
}

/*regform laytou css*/
.password-wrap {
    position: relative;
}

.password-wrap input {
    width: 100%;
    padding-right: 44px; /* chừa chỗ icon */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #888;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password .dashicons {
    font-size: 20px;
}

/*style for challenge meta*/
.challenge-count {
            cursor: pointer;
            padding: 2px 5px;
            border-radius: 3px;
            display: inline-block;
            min-width: 20px;
            text-align: center;
        }
        .challenge-count.registered { background: linear-gradient(to right, #4776E6, #8E54E9); color: white; }
        .challenge-count.doing { background: linear-gradient(to right, #fc4a1a, #f7b733); color: white; }
        .challenge-count.completed { background: linear-gradient(to right, #09d1c2, #6be585); color: white; }
        .challenge-count.failed { background: linear-gradient(to right, #c0392b, #8e44ad); color: white; }
        .challenge-count.zero { color: #888; }
        .challenge-count:hover { opacity: 0.8; }

        #xchallenge-details-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }
        .xchallenge-modal-content {
            background: white;
            padding: 20px;
            border-radius: 8px;
            max-width: 800px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
        }
        .xchallenge-modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 20px;
            cursor: pointer;
            color: #333;
        }
        .xchallenge-details-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }
        .xchallenge-details-table th,
        .xchallenge-details-table td {
            padding: 10px;
            border: 1px solid #ddd;
            text-align: left;
        }
        .xchallenge-details-table th {
            background: #f4f4f4;
            font-weight: bold;
        }
        .xchallenge-details-table .status-registered { color: #4776E6; }
        .xchallenge-details-table .status-doing { color: #fc4a1a; }
        .xchallenge-details-table .status-completed { color: #09d1c2; }
        .xchallenge-details-table .status-failed { color: #c0392b; }

.woocommerce-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

/*hidden number username - update button*/
.user-id {display:none;}
.mt-0{display:none;}
#wrapper>.message-wrapper{font-size: unset;margin-bottom: unset;}
.success-color{color: #c0a644;}
.show-password-input{visibility: unset;
    color: #aaa;}
/* Responsive mobile */
@media (max-width: 768px) {
    #notify-topbar {
        font-size: 14px;
        padding: 10px;
    }
}
/*modal popup passwords style*/
.modal-content{background-color: #59503fe8 !important;}
.password-form-container {
  max-width: 500px;
  margin: 80px auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.form-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 25px;
  color: #333;
}


.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  border-color: #00a896;
  box-shadow: 0 0 5px rgba(0, 168, 150, 0.3);
  outline: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px; /* khoảng cách giữa 2 nút */
  margin-top: 30px;
}

.btn {
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}

.btn.cancel {
  background: #e0e0e0;
  color: #333;
}

.btn.submit {
  background: linear-gradient(135deg, #00a896, #007b7b);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 168, 150, 0.4);
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/*Product Layout Custom*/
.woocommerce ul.products li.product *,
.woocommerce-page ul.products li.product * {
    background-color: transparent !important;
}

/* Tiêu đề sản phẩm */
.gold-headline {
    color: #FFD700; /* vàng đậm */
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
}

/* Giá sản phẩm */
.gold-price {
    color: white !important;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 5px;
}

.box-image{background-color:#503b17;}
span.amount{color:unset;}
.box-text.text-center{background:black;}

/* Cơ bản: bo tròn nhẹ + transition mượt */
.box-image {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-image img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.box-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.card {
  max-width: 100% !important;
}



.woocommerce-MyAccount-content{color:white;}
.has-border{border-radius:15px;}
.account-item has-icon {font-size:12px !important;}
#account_display_name_description{display:none;}
@media only screen and (max-width: 48em) {




}