/* ==========================================================================
   Global Styles
   ========================================================================== */

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

:root {
    --primary-color: #5F3DBA;
    --secondary-color: #facc15;
    --bg-light: #f8fafc;
    --bg-dark: #1f2937;
    --text-light: #1e293b;
    --text-dark: #e5e7eb;
    --card-bg-light: #ffffff;
    --card-bg-dark: #374151;
    --transition-speed: 0.3s;
    --bs-btn-hover-color: #facc15;
    --success-color: #22c55e;
    --danger-color: #dc3545;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    transition: background var(--transition-speed), color var(--transition-speed);
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

input.form-control,
select.form-control {
    border-radius: 24px !important;
}

.bdr-24 {
    border-radius: 24px !important;
}

.pd-top-90px {
    padding-top: 90px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-danger {
    color: var(--danger-color);
}

.flatpickr-current-month {
    text-align: left !important;
    padding-top: 12.48px !important;
}
.flatpickr-current-month input.cur-year {
    font-size: 0.95rem !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    max-width: 140px !important;
    width: 140px !important;
    padding-left: 0px !important;
    font-size: 0.95rem !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}
.primary-text-shadow {
    text-shadow: 1px 1px #9E9E9E;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 72%;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle-password:hover,
body.dark-mode .toggle-password {
    color: #495057;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input, textarea, select, button {
    appearance: none !important;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    background: var(--card-bg-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar .navbar-toggler {
    border-radius: 24px;
}

body.dark-mode .navbar .navbar-toggler {
    background-color: var(--secondary-color);
}

.navbar-nav .nav-link.active, .navbar-nav .show>.nav-link {
    color:#007bff;
}

body.dark-mode .navbar {
    background: var(--card-bg-dark);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-item.active .nav-link,
.nav-link:hover {
    color: var(--primary-color) !important;
    transition: color 0.2s;

}

body.dark-mode .nav-item.active .nav-link,
body.dark-mode .nav-link:hover {
    color: var(--secondary-color) !important;
    transition: color 0.2s;

}

body.dark-mode .nav-link {
    color: white !important;
}

body.dark-mode .nav-item.active .brand-item,
body.dark-mode .brand-item:hover {
    color: white !important;
    background: var(--secondary-color);
}



.navbar .fa-search {
    color: var(--primary-color)
}

.form-control:focus,
.search-box.active {
    border: 1px solid var(--primary-color);
}

.btn-gradient {
    background: linear-gradient(to right, var(--primary-color), #6b48ff);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 0.5rem 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-area {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box {
    width: 0;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s ease;
    border-radius: 24px;
    position: absolute;
    top: 52px;
    right: 0px;
    border: none;
}

.search-box.active {
    width: 450px;
    opacity: 1;
    transition: width 0.3s, opacity 0.3s ease;
}

body.dark-mode .search-box.active {
    background-color: var(--bg-dark);
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s ease;
}

.theme-toggle {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.2s;
}

body.dark-mode .theme-toggle {
    color: var(--text-dark);
}

body.dark-mode .text-black {
    color: #ffffff !important;
}

@media screen and (max-width: 1199px) {
    .logo-section {
        width: calc(100% - 80px);
    }
    .search-box {
        top: 63px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
body.dark-mode .hero-section {
    background: linear-gradient(90deg, #374151, #1f2937);
}

.hero-section .nav-tabs {
    border: none;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-section .nav-link {
    border-radius: 24px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
    border: none;
}

body.dark-mode .hero-section .nav-link {
    color: var(--text-dark);
}

.hero-section .nav-link.active {
    background: var(--secondary-color);
    color: white !important;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.05);
    border: none;
}

.price-card {
    border: none;
    border-radius: 24px;
    background: var(--card-bg-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

body.dark-mode .price-card {
    background: var(--card-bg-dark);
}

body.dark-mode .price-card .list-group-item {
    background: var(--card-bg-dark);
    color: var(--text-dark);
    border-bottom-color: var(--bg-light);
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5rem;
}

.price-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d
}

.price-green {
    color: #22c55e;
}

.price-red {
    color: #dc3545;
}

.update-btn {
    border-radius: 24px;
}

.label.buy {
    color: #28a745;
}

.label.sell {
    color: #dc3545;
}

.label {
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
}

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    color: #ffffff;
}


.hero-section .comment-section .accordion-button:not(.collapsed) {
    box-shadow: none;
}
.hero-section .comment-section .accordion-item {
    border-radius: 24px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}


.hero-section .comment-section .accordion-item .accordion-button {
    border-radius: 24px;
    background-color: #ffffff;
    color: #000000;
}

.hero-section .comment-section .accordion-item .accordion-button::after {
    color: #000000;
    background-color: #f9fafb;
    border-radius: 50%;
}
.hero-section .comment-section .accordion-button:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-icon);
}

.hero-section .comment-section .comment-list .comment-list-content {
    max-height: 300px;
    overflow-y: auto;
}

body.dark-mode .hero-section .accordion-item {
    margin-bottom: 0px !important;
}

.comment-list-content::-webkit-scrollbar {
  width: 5px;
  height: 30px;
}

.comment-list-content::-webkit-scrollbar-track {
  background: #f1f1f1; /* Track color */
  border-radius: 4px;
}

.comment-list-content::-webkit-scrollbar-thumb {
  background: #888; /* Scrollbar color */
  border-radius: 4px;
}

.comment-list-content::-webkit-scrollbar-thumb:hover {
  background: #555; /* Darker color on hover */
}

.hero-section .comment-section .comment-list .comment-item {
    border-radius: 24px;
    padding: 0.3rem;
    background-color: #f9fafb;
}

body.dark-mode .hero-section .comment-section .comment-list .comment-item {
    background-color: #283241;
}

.hero-section .comment-section .comment-list .comment-item .avatar {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: linear-gradient(to right, var(--primary-color), #6b48ff);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 500;
      font-size: 1rem;
      max-width: 46px;
      min-width: 46px;
    }
.hero-section .comment-section .comment-list .comment-item .avatar-initial {
      text-transform: uppercase;
      font-size: 1rem;
    }

.hero-section .comment-section .comment-list .comment-item p {
    font-size: 0.9rem;
}

body.dark-mode .comment-section .accordion-item,
body.dark-mode .hero-section .comment-section .accordion-item .accordion-button {
    background-color: var(--card-bg-dark);
    color: #ffffff;
}

body.dark-mode .hero-section .comment-section .accordion-item .accordion-button::after {
    background-color: var(--secondary-color);
}

.hero-section .comment-section .btn-add-comment {
    right: 0px;
    top: 0px;
    z-index: 1000;
}

.hero-section .comment-section .comment-input {
    min-height: 90px;
    height: 90px;
}

body.dark-mode .hero-section .comment-section .comment-input {
    background-color: var(--card-bg-dark);
    color: #ffffff;
}

@media screen and (max-width: 1024px) {
    .hero-section .comment-section .comment-area {
        display: block;
    }

    .hero-section .comment-section .comment-area textarea {
        border-radius: 24px;
        height: 80px;
        width: 100%;
    }

     .hero-section .comment-section .comment-area button {
        position: relative !important;
        text-align: center;
        display: inline-block;
    }
}

/* ==========================================================================
   Gold Chart Section
   ========================================================================== */

.gold-chart-section {
    background: #f9fafb;
}

body.dark-mode .gold-chart-section {
    background: linear-gradient(90deg, #374151, #1f2937);
}

.gold-chart-section .title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e40af;
}

.gold-chart-section .chart-card {
    border: none;
    border-radius: 24px;
    background: var(--card-bg-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

body.dark-mode .gold-chart-section .chart-card {
    background: var(--card-bg-dark);
}

.chart-group-select {
    border: none !important;
    border-radius: 24px;
    background: var(--card-bg-light);
    padding: 0.5rem 1.5rem;
    transition: transform 0.3s;
}

.tab-container {
    text-align: center;
    margin-bottom: 1rem;
}

.tab-btn {
    border-radius: 24px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    background: #e2e8f0;
    color: #475569;
    transition: all 0.3s;
    cursor: pointer;
    margin: 0 0.3rem;
}

body.dark-mode .tab-btn {
    background-color: var(--card-bg-dark);
    color: var(--bg-light);
}

.tab-btn.active {
    background: linear-gradient(to right, var(--primary-color), #6b48ff);
    color: var(--bg-light);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.select-group select,
.select-group input {
    border-radius: 24px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--card-bg-light);
    max-width: 235px;
    width: 235px;
    text-align: center;
    text-align-last: center;
}

body.dark-mode .select-group select,
body.dark-mode .select-group input {
    background: var(--card-bg-dark);
    color: #ffffff;
}

.gold-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.gold-types .btn {
    background: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 24px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.gold-types .btn.active {
    background: var(--primary-color);
    color: white;
}

.chart-container {
    width: 100% !important;
    max-width: 100%;
    height: 450px;
    max-height: 450px;
    aspect-ratio: 16 / 9;
    position: relative;
}

#internationalChartContainer,
#domesticChartContainer {
    display: none;
}

#domesticOptions {
    display: none;
}

.chart-skeleton {
    width: 100%;
    height: 450px;
    background: linear-gradient(
      90deg,
      #eee 25%,
      #ddd 37%,
      #eee 63%
    );
    background-size: 400% 100%;
    animation: shimmers 8s infinite;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  @keyframes shimmers {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }

.gold-chart-section .btn-chart-action,
.section-tools .btn-chart-action {
    font-size: 0.86rem;
    border-radius: 24px;
    padding: 0.3rem 1rem;
}

.section-tools #calendar .list-group .list-group-item {
    font-size: 0.95rem;
}

body.dark-mode #calendar .list-group .list-group-item{
    background-color: transparent;
    color: #ffffff;
}

.loading-text {
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

 .loading-text::after {
    content: attr(data-loading-text);
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: attr(data-loading-text); }
    33% { content: attr(data-loading-text) '.'; }
    66% { content: attr(data-loading-text) '..'; }
    100% { content: attr(data-loading-text) '...'; }
}
/* ==========================================================================
   Other Sections (Analysis, News, Tools, Why)
   ========================================================================== */

.section-analysis,
.section-news,
.section-tools,
.section-why,
.section-feedbacks,
.section-register {
    background: var(--bg-light);
}

body.dark-mode .section-analysis,
body.dark-mode .section-news,
body.dark-mode .section-tools,
body.dark-mode .section-why,
body.dark-mode .section-feedbacks,
body.dark-mode .section-register {
    background: linear-gradient(90deg, #374151, #1f2937);
}

.section-analysis .table-responsive,
.section-tools .card,
.news-card,
.why-box,
.feedback-item,
.plan {
    border-radius: 24px;
    background: var(--card-bg-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
    border: none;
}

.section-analysis .table tr>th {
    padding-top: 1rem !important;
    font-size: 1rem;
}

.section-analysis .table tr>td {
    font-size: 0.85rem;
}

body.dark-mode .section-analysis .table-responsive,
body.dark-mode .section-tools .card,
body.dark-mode .news-card,
body.dark-mode .why-box,
body.dark-mode .feedback-item,
body.dark-mode .plan {
    background: var(--card-bg-dark);
}

.section-analysis .tbody,
.section-analysis td,
.section-analysis tfoot,
.section-analysis th,
.section-analysis thead,
.section-analysis tr {
    border-color: transparent;
}

.btn-vip {
    border-radius: 24px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.plan.active {
    border-color: var(--primary-color);
    /* box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2); */
}

.view-more-link {
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: underline;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    cursor: pointer;
}
body.dark-mode .view-more-link {
    color: var(--bg-light);
}

.view-more-link:hover,
body.dark-mode .view-more-link:hover {
    color: var(--secondary-color) !important;
}

/* News Card Styles */
.news-link {
    text-decoration: none;
}
.news-card {
    padding: 1rem;
    background-color: white;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-content img {
    max-width: 100%;
    margin: 10px auto;
    display: block;
}

.news-badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 24px;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #212529;
    transition: all 0.2s ease;

}

body.dark-mode .news-title {
    color: var(--bg-light);
}

.news-title:hover,
body.dark-mode .news-title:hover {
    color: var(--secondary-color);
}

.news-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 10px;
}

body.dark-mode .news-date {
    color: var(--bg-light);
}

.news-img {
    border-radius: 8px;
    width: 100%;
    height: 195px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.news-footer:hover .news-img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.news-view {
    float: right;
}

.news-footer {
    text-align: left;
    overflow: hidden;
    border-radius: 8px;
}

/* Why Box Styles */
.section-why .highlight {
    color: #f6c600;
}

.why-box {
    background: white;
    border-radius: 24px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.why-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.gx-7px {
    column-gap: 7px;
}

.why-icon {
    width: 50px;
    height: 50px;
    background-color: #efeaff;;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon i {
    font-size: 28px;
    color: #5f3dc4;
    border-radius: 50%;
    display: inline-block;
}

.why-box h6 {
    font-size: 1.1rem;
}

.why-box p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .section-why h2 {
        font-size: 1.5rem;
    }

    .why-box h6 {
        font-size: 0.9rem;
    }

    .why-box p {
        font-size: 0.85rem;
    }

    .why-box {
        text-align: center;
    }

    .select-group select,
    .select-group input {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 575px) {
    .why-box .why-box-header {
        justify-content: center;
    }
    .why-box h6 {
        font-size: 1.1rem;
    }

    .why-box p {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Feedbacks
   ========================================================================== */
.section-feedbacks .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
}

body.dark-mode .section-feedbacks .section-title {
    color: var(--bg-light);
}

.feedback-slider .feedback-item {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feedback-slider .feedback-item:hover {
    transform: translateY(-6px);
}

.feedback-slider .stars {
    color: #fcd34d;
    margin-bottom: 10px;
}

.feedback-slider .content {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feedback-slider .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-slider .user-info img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.feedback-slider .name {
    font-weight: 600;
    margin: 0;
}

.feedback-slider .username {
    font-size: 13px;
    margin: 0;
}

/* ==========================================================================
   Tools
   ========================================================================== */
.section-tools #companyTabs .nav-tabs {
    border: none;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-tools #companyTabs .nav-link {
    border-radius: 24px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.section-tools #companyTabs .nav-link.active {
    background: var(--secondary-color);
    color: white !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Slick override */
.slick-slide {
    margin: 0 15px;
}

.slick-list {
    margin: 0 -15px;
}

@media (max-width: 768px) {
    .section-feedbacks .section-title {
        font-size: 22px;
    }
}

/* ==========================================================================
   Register/Plan
   ========================================================================== */

.section-register {
    background: #f4f7fe;
}

.register-left {
    flex: 1 1 45%;
}

.register-left h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.register-left p {
    color: #666;
    margin-bottom: 20px;
}

.benefits {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.benefits li {
    font-size: 16px;
    display: flex;
    align-items: center;
    color: #222;
}

.benefits i {
    color: var(--primary-color);
    margin-right: 10px;
}

.register-right {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan {
    background: #fff;
    border: 2px solid #d1d5db;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 24px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.plan p {
    color: #555;
    margin: 0;
    font-size: 15px;
}

.more-btn {
    background: linear-gradient(to right, var(--primary-color), #6b48ff);
    border: none;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 24px;
}

body.dark-mode .modal-content {
    color: var(--bg-dark);
}

/* .btn-register {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
} */


/* ==========================================================================
   AUTH MODEL
   ========================================================================== */
#authModal .modal-content {
    border-radius: 24px;
}

#authModal .modal-header {
    border-bottom: 0px;
}

body.dark-mode #authModal .modal-content {
    background: var(--card-bg-dark);
    color: var(--text-dark);
}

body.dark-mode #authModal .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707A1 1 0 01.293.293z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: linear-gradient(to right, var(--primary-color), #6b48ff);
    color: white;
    padding: 60px 20px 30px;
    font-family: sans-serif;
}

.newsletter {
    text-align: center;
    margin-bottom: 40px;
}

.newsletter h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.newsletter p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    padding: 12px 16px;
    border: none;
    border-radius: 24px;
    width: 300px;
    max-width: 100%;
}

.newsletter-form button {
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid #ffffff;
}

.footer-item {
    color: #ffffff;
    text-align: left;
    text-decoration: none;
    margin: 0.5rem 0;
    display: inline-block;
    line-height: 1.8rem;
}

a.footer-item:hover {
    color: var(--secondary-color);
}

.logo-name {
    color: var(--secondary-color);
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #f3f4f6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.new-badge {
    background: white;
    color: black;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 999px;
    margin-left: 4px;
    font-weight: 600;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.footer-bottom .brand {
    margin-bottom: 8px;
    font-size: 16px;
}

/* ==========================================================================
   Loading
   ========================================================================== */

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    display: none;
}

.spinner {
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e3b8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.daily-gold-prices {
    display: block-inline;
}
/* ==========================================================================
   Skeleton
   ========================================================================== */
.skeleton {
    color: #e0e0e0;
    display: inline-block;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}
.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }

    .navbar-nav {
        margin-top: 1rem;
    }

    .search-box.active {
        width: 95%;
    }

    .filter-container {
        flex-direction: column;
    }

    .select-group select {
        width: 100%;
    }

    .chart-container {
        max-height: 250px;
    }

    .section-tools .nav .nav-item {
        margin-bottom: 10px;
    }

}

@media (max-width: 576px) {
    .btn-profile {
        margin-bottom: 25px;
    }

    .newsletter-form button {
        width: 300px;
    }
}

/** ACCOUNT NOTIFICATION **/

.account-notification-card {
    position: fixed;
    bottom: 0px;
    background-color: #fff;
    padding: 0.6rem;
    text-align: center;
    width: 100%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.account-notification-card h2 {
    color: #dc3545;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.account-notification-card p {
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.8rem;
    margin-bottom: 0px;
}

/** BACK TO TOP **/
.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 10px;
    display: none;
    background-color: #6b46c1;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s;
}
.back-to-top:hover {
    background-color: #553c9a;
}
.back-to-top.show {
    display: block;
}

.grecaptcha-badge {
    visibility: hidden;
}