/* Global focus outline — matches brand color */
*:focus-visible {
    outline: 2px solid #94003c;
    outline-offset: 1px;
}

/* Loader and animations */
.loader {
    height: 3px;
    width: 100%;
    animation: loader 2s linear infinite;
    background-image: linear-gradient(90deg, #d21b35, #cc650b, #ffb70a, #d21b35, #cc650b);
    background-size: 400% 100%;
}

@keyframes loader {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.headermain {
    background-color: #FFFFFF;
}

.header {
    margin: auto;
    padding-bottom: 10px;
}

.header>.row {
    align-items: center;
}

.logo {
    display: block;
    padding-top: 15px;
}

.logo a img {
    height: auto;
    width: 100%;
    display: block;
}



.headerright>.row {
    align-items: center;
}

.headerrightleft {
    position: relative;
    padding: 0 0 0 50px;
}

.search-wrapper {
    margin-bottom: 0 !important;
}

.headerrightleft input {
    border: 1px solid #94003c;
    padding: 8px;
}

.headerrightleft input::placeholder {
    color: #5f4c54;
    opacity: 0.5;
}

.headerrightleft .input-group-text {
    background: #96281b;
    border: 2px solid #94003c;
    color: #FFF;
    padding: 8px 25px;
    font-size: 20px;
}

.headerrightcenter,
.headerrightright {
    display: flex;
    align-items: center;
    justify-content: center;
}

.headerrightcenter button,
.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0088cc;
    font-size: 28px;
    text-decoration: none;
    transition: 0.3s;
}

.telegram-btn:hover {
    color: #006699;
    transform: scale(1.1);
}


.headerrightcenter button:hover,
.headerrightright button:hover {
    background: #94003c;
    color: #FFF;
    transition: 0.5s;
}

.headerrightcenter button .svg-inline--fa,
.headerrightright button .svg-inline--fa {}


.mainmenu {
    width: 100%;
    min-height: 42px;
    background: #96281b;
}

.pagescontent {
    background: #FFFFFF;
    padding-bottom: 20px;
}

.pagescontent h2 {
    font-size: 1.75rem;
}

.mainslider {
    background: url(../img/sliderbg.jpg);
    background-size: contain;
    margin-bottom: 10px;
}

.homeevents {
    background: #FFFFFF;
}

.homeevents h5 {
    text-transform: uppercase;
    text-align: center;
    margin: 15px 0;
    font-weight: 700;
    background: url("../img/underline1.png") no-repeat bottom;
    background-size: contain;
    padding-bottom: 13px;
    animation: color-changeeve 1s infinite;
}

@keyframes color-changeeve {
    10% {
        color: #d21c35;
    }

    50% {
        color: #cc650a;
    }

    100% {
        color: #ffb90a;
    }
}

.eventtab {
    border-bottom: 1px solid #d7d2d2;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
}

.eventtab h6 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    text-align: center;
    color: #b60c23;
    font-size: 14px;
}

.eventtab p {
    color: #626262;
    margin-bottom: 5px;
    text-align: center;
}

.eventtabmain {
    width: 100%;
    overflow: hidden;
    max-height: 310px;
}

.eventtab {
    animation: marquee 12s linear infinite;
}

.eventtabmain:hover .eventtab {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(0, -100%);
    }
}

.homeevents a {
    text-align: right;
    display: block;
}


/* =================================== Home Exhibitions tabs start====================== */
.homeexhibitionstab {
    margin-bottom: 10px;
    background-color: #FFFFFF;
    padding: 20px 10px 10px 10px;
}

.homeexhibitionstab h3 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 25px;
}

.schedule-tabs {
    position: relative;
    text-align: center;
    padding-left: 0px;
    margin-bottom: 0px;
}

.schedule-tabs .tab-btn {
    position: relative;
    display: inline-block;
    height: 135px;
    width: 160px;
    border-radius: 20px;
    background-color: #fff;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-align: left;
    padding: 70px 15px 15px 90px;
    cursor: pointer;
    margin: 0 15px 20px;
    -webkit-transition: .3s;
    -moz-transition: .3s;
    -ms-transition: .3s;
    -o-transition: .3s;
    transition: .3s
}

.schedule-tabs .tab-btn .day {
    position: absolute;
    left: 0;
    top: 10px;
    padding: 5px 20px 5px 5px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #fff;
    border-radius: 5px 15px 15px 0;
    width: 100%;
}

.schedule-tabs .tab-btn .date {
    position: absolute;
    left: 0;
    top: 52px;
    width: 100%;
    text-align: center;
    font-size: 25px;
    line-height: 20px;
    font-weight: 600;
}

.schedule-tabs .tab-btn .monthyear {
    position: absolute;
    left: 0;
    top: 85px;
    width: 100%;
    text-align: center;
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
}

.schedule-tabs .tab-btn:hover {
    background-color: #f4f1f2;
}


.schedule-tabs .tab-btn .moredetails {
    position: absolute;
    left: 0;
    top: 112px;
    font-size: 12px;
    width: 100%;
    text-align: center;
}

.homeextabcone {
    border: 1px solid #96281b;
    box-shadow: 0 0px 9px rgba(150, 40, 27, 0.64);
}

.homeextabcone .day {
    background: #96281b;
}

.homeextabcone .date,
.homeextabcone .moredetails {
    color: #96281b;
}

.homeextabctwo {
    border: 1px solid #cc650a;
    box-shadow: 0 0px 9px rgba(204, 101, 10, 0.58);
}

.homeextabctwo .day {
    background: #cc650a;
}

.homeextabctwo .date,
.homeextabctwo .moredetails {
    color: #cc650a;
}

.homeextabcthree {
    border: 1px solid #B24334;
    box-shadow: 0 0px 9px rgba(255, 185, 10, 0.42);
}

.homeextabcthree .day {
    background: #B24334;
}

.homeextabcthree .date,
.homeextabcthree .moredetails {
    color: #B24334;
}

.homeextabcfour {
    border: 1px solid #d21c25;
    box-shadow: 0 0px 9px rgba(210, 28, 53, 0.28);
}

.homeextabcfour .day {
    background: #d21c25;
}

.homeextabcfour .date,
.homeextabcfour .moredetails {
    color: #d21c25;
}


/* =================================== Home Exhibitions tabs end====================== */


.productshomeitemsmain {
    overflow: hidden;
}

.homeitemstab {
    margin-bottom: 15px;
    background-color: #FFFFFF;
    padding-bottom: 20px;
}

.homeitemstab h2 {
    margin: 5px 0 5px 0;
    font-size: 19px;
    text-transform: uppercase;
}

.homeitemstab hr {
    color: #974a07;
    margin: 0 0 10px 0;
    height: 1px;
    opacity: 1;
}

.homeitemstab .viewall {
    text-align: right;
}

.itemstab {
    margin-top: 15px;
}

.itemstab a:hover {
    color: inherit;
    text-decoration: none;
}

.itemtabimgmiddle img {
    vertical-align: middle;
    display: table-cell !important;
}

.itemimgdet {
    border: 1px solid #eae8e8;
    padding: 5px 10px;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1);
}

.itemimgdet:hover {
    background: #f8f8f8;
}

.itemstab .justify-content-between {
    padding-top: 10px;
}

.itemstab .quickviewico .svg-inline--fa {
    color: #fff;
    padding: 3px 4px 0px 4px;
    font-size: 15px;
    border-radius: 3px;
}

.itemstab .quickviewico span {
    float: left;
    text-align: center;
    display: block;
    padding: 2px 0 0 5px;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: bolder;
}

.quickviewico {
    padding: 2px;
    margin: auto;
    color: #fff;
    border: 1px solid #D09B13;
    background-color: #96281b;
    border-radius: 1px;
    transition: 0.3s;
    width: 90%;
    text-align: center;
    margin-bottom: 2px;
    font-weight: bold;
}

.quickviewico:hover {
    color: #513B04;
    cursor: pointer;
    transition: 0.3s;
    background-color: #FFBA08;
}

.quickviewico:hover .svg-inline--fa {
    color: #513B04;
}

.itemimgdet p {
    margin: 8px 0;
    text-align: center;
    color: #62636C;
    font-weight: 600;
}

.itemimgdet .title {
    font-weight: 500;
    color: #1e1f24;
    overflow-wrap: break-word;
    min-height: 47px;
    max-height: 3em;
    /* Approximately 2 lines */
    line-height: 1.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.itemimgdet strong {
    color: #fff;
    text-align: center;
    display: block;
    background: #94003c;
    padding: 3px;
}



.pagescontent h1 {
    color: #643206;
    display: block;
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
}

.breadcrumbs {
    padding: 15px 0;
    color: #6b6b6b;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 10px;
}

.breadcrumbs a:hover {
    color: #94003C;
}


.imgStyle img {
    height: 75px;
    width: 75px;
    border: 2px solid #9b9b9b;
    padding: 2px;
    margin: 0 0 5px 0;
}

.imgStyle img:hover {
    border: 2px solid #3b3b3b;
    cursor: pointer;
}

#img-zoomer-box {
    max-width: 500px;
    height: auto;
    position: relative;
    margin: 10px auto;
}

#img-1 {
    width: 100%;
    height: auto;
    margin: 10px 0 10px 0;
}

#img-zoomer-box:hover,
#img-zoomer-box:active {
    cursor: none;
    display: block;
}

#img-zoomer-box:hover #img-2,
#img-zoomer-box:active #img-2 {
    opacity: 1;
}

#img-2 {
    width: 250px;
    height: 250px;
    box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    position: absolute;
    opacity: 0;
    border: 4px solid whitesmoke;
    z-index: 1061;
    border-radius: 100%;
    display: block;
    transition: opacity .2s;
}


.productlistright .group {
    text-align: center;
    font-weight: bold;
}

.productlistright td {
    text-align: left;
    vertical-align: middle;
}

.productdetailsright {
    background: #fafafa;
    padding: 5px 25px 15px 25px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    line-height: 25px;
    color: #000000;
    font-size: 16px;
}

.productdetailsright h4 {
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.productdetailsright ol {
    padding-left: 0;
    margin-top: 10px;
}

.productdetailsright ol li {
    line-height: 16px;
    margin: 8px 0 8px 0;
    list-style-type: none;
    float: left;
    width: 50%;
}

.productdetailsright ol li::before {
    content: '\f101';
    font-weight: 900;
    font-family: "Font Awesome 5 Free", serif;
    padding-right: 10px;
    font-size: 12px;
}

.obverse,
.reverse {
    border: 1px solid #e5e5e5;
}

.obverse strong,
.reverse strong {
    text-align: center;
    display: block;
}

.commemorative-occasion {
    border: 1px solid #e5e5e5;
    padding: 10px;
}

.commemorative-occasion strong {
    text-align: center;
    display: block;
    margin-bottom: 10px;
}

.commemorative-occasion-text {
    text-align: left;
}

.productdetailsright .tabledata {
    font-size: 14px;
    margin-top: 15px;
}

.fa-circle-info {
    color: #00000070;
}

.fa-circle-info:hover {
    color: #000000;
}


.sellerstable {
    margin-top: 15px;
}

.sellerstable .fa-whatsapp-square {
    color: #25D366;
    font-size: 25px;
}

.sellerstable img {
    width: 25px;
    height: 25px;
    margin-right: 5px;
    float: left;
}

.filterleft label {
    font-size: 14px;
    padding: 5px 0 5px 10px;
    border-bottom: 1px solid #eee;
}

.filterleft label:hover {
    color: #94003c;
    cursor: pointer;
    animation-name: shake;
    animation-duration: 0.5s;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}


.productlistright {
    border-left: 1px solid #e7e7e7;
}

.tablecelliconimg {
    width: 27px;
    height: 27px;
    border: 1px solid #f0dede;
    border-radius: 50%;
}

.tabledetailsbt {
    background: transparent;
    color: #640310;
    border: 1px solid #f2b8ae;
    padding: 2px 5px;
    border-radius: 5px;
    transition: 0.5s;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 1px;
    display: inline-block;
}

.tabledetailsbt:hover {
    background: #94003c;
    color: #FFF;
    transition: 0.5s;
    text-decoration: none;
}

#myTable .fa-square-share-nodes {
    font-size: 20px;
    padding-top: 3px;
}




.footer {
    margin-top: 20px;
    min-height: 75px;
    text-align: center;
    background: #56261F;
    border-top: 1px solid #ccbaac;
    padding-top: 10px;
}

.footer a {
    padding: 10px;
    color: #fcfcfc;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.copyright {
    margin: 10px 0;
    color: #fcfcfc;
}


/* Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) {
    .headerrighttop {
        text-align: center;
    }

    .logo {
        padding-top: 5px;
    }

    .headerright {
        padding-top: 5px;
    }

    .headerrightleft {
        position: absolute;
        right: 0px;
        top: 48px;
    }

    .headerrightcenter,
    .headerrightright {
        margin-top: 0;
    }

    .mainmenu {
        margin-top: -55px;
    }

    .logo a img {
        width: 100%;
        margin: auto;
    }

    .homeevents h5 {
        padding-bottom: 25px;
    }

    .eventtabmain {
        max-height: 144px;
    }

    .homeitemstab {
        padding-bottom: 20px;
    }

    .navbar-dark .navbar-nav .nav-link {
        font-size: 13px;
    }

    .productdetailsright p {
        margin: 12px 0 12px -10px;
    }
}

/* small devices (tablets, less than 768px)*/
@media (max-width: 768.98px) {
    .header {
        min-height: 115px;
    }

    .headerrightleft {
        position: absolute;
        right: 85px;
        top: 85px;
        padding: 0px 0 0 120px;
    }

    .headerrightcenter,
    .headerrightright {
        margin-top: 0;
    }

    .mainmenu {
        margin-top: -33px;
    }

    .schedule-tabs .tab-buttons li {
        margin: 5px;
    }

    .homeexhibitionstab h3 {
        font-size: 18px;
    }

    .breadcrumbs {
        display: none;
    }

    .tablecellicon {
        text-align: inherit;
    }

    .pagescontent {
        padding-top: 10px;
    }

    .productdetailsright ol li {
        width: 100%;
    }
}



/* X-Small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
    .headerrightleft {
        display: none;
    }

    .headerright>.row {
        flex-wrap: wrap;
    }

    .headerrightcenter,
    .headerrightright {
        margin-top: 0;
    }

    /* Hide only the user-name text and phone number text, NOT the user avatar */
    .headerrightcenter .user-name-display,
    .headerrightright span {
        display: none;
    }

    /* Keep user avatar visible */
    .headerrightcenter .user-avatar {
        display: inline-flex !important;
    }

    .mainmenu {
        margin-top: -70px;
    }

    /* Show search box in the nav bar on mobile */
    .mainmenu .container.menu {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .mainmenu .container.menu>button {
        flex-shrink: 0;
    }

    .slider {
        display: none;
    }

    .pagescontent h1 {
        text-align: center;
    }

    .navbar-dark .navbar-nav .nav-link {
        font-size: 15px;
    }

    .pagescontent h1 {
        margin-bottom: 0;
        font-size: 23px;
    }

    .homeitemstab {
        margin-top: 0;
        text-align: center;
    }

    .quickviewico {
        width: 85%;
    }

    .homeitemstab h2 {
        font-size: 15px;
        text-align: left;
    }

    #headingOne {
        display: none;
    }

    .coin-details-card .card-header .btn {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* Video thumbnail styling for tables */
.video-thumbnail-table {
    transition: transform 0.2s ease;
}

.video-thumbnail-table:hover {
    transform: scale(1.1);
}

.video-thumbnail-table img {
    transition: border-color 0.2s ease;
}

.video-thumbnail-table:hover img {
    border-color: #ff0000 !important;
}

/* Sticky Elements for Coin Pages */
@media (min-width: 768px) {
    .sticky-sidebar {
        position: sticky;
        top: 20px;
        height: calc(100vh - 40px);
        overflow-y: auto;
        z-index: 100;
    }
}

.sticky-top-controls {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding-bottom: 10px;
    z-index: 105;
    /* Optional shadow under controls */
    border-bottom: 1px solid #eaeaea;
}

/* Make DataTables headers sticky */
table.dataTable thead th,
table.dataTable thead td,
#myTable thead th {
    position: sticky;
    top: 46.5px;
    /* offset by the sticky controls above it */
    z-index: 102;
    background-color: #ede1e0 !important;
    color: #333 !important;
}

@media (max-width: 767px) {
    .sticky-sidebar {
        position: sticky;
        top: 0;
        z-index: 106;
        /* Keep above controls when scrolling */
        background-color: #fff;
        padding-bottom: 5px;
    }

    .sticky-sidebar .navbar-collapse.show {
        max-height: 60vh;
        overflow-y: auto;
        border-bottom: 2px solid #eaeaea;
    }

    .sticky-top-controls {
        top: 65px !important;
        /* Appx height of closed accordion header */
        z-index: 105;
    }

    .sticky-top-controls .coins-info-text {
        text-align: center;
        width: 100%;
        margin-bottom: 5px;
    }

    table.dataTable thead th,
    table.dataTable thead td,
    #myTable thead th {
        top: 139.5px !important;
        /* 65 + 74.5 */
        z-index: 102;
    }
}

/* DataTable row styling - remove striped effect and keep only group headers with ash background */
#myTable tbody tr {
    background-color: white !important;
}

#myTable tbody tr:hover {
    background-color: #f5f5f5 !important;
}

/* Keep original ash/gray background for group header rows */
#myTable tbody tr.group {
    background-color: #f8f9fa !important;
    font-weight: bold;
    border-top: 2px solid #dee2e6;
}

#myTable tbody tr.group td {
    text-align: center;
}

#myTable tbody tr.group:hover {
    background-color: #e9ecef !important;
}

/* Add thicker bottom border when year changes */
#myTable tbody tr.year-change {
    border-bottom: 1.2px solid #b2b7bb !important;
}

/* ===================================== Numismatic Societies Page Styles ===================================== */

/* Hero Section Styling */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Search and Filter Section */
.search-filter-section {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box .input-group-text {
    background: #4f231d;
    color: white;
    border: none;
}

.search-box .form-control {
    border-left: none;
    padding: 0.75rem 1rem;
}

.search-box .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 35, 29, 0.25);
    border-color: #4f231d;
}

/* Content Section */
.section-title {
    color: #4f231d;
    font-weight: 600;
    margin-bottom: 0;
}

.view-toggle .btn {
    border-color: #4f231d;
    color: #4f231d;
}

.view-toggle .btn.active,
.view-toggle .btn:hover {
    background-color: #4f231d;
    color: white;
}

/* Modern Table Styling */
.modern-table {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.modern-table thead tr {
    background: linear-gradient(135deg, #4f231d 0%, #6d3428 100%);
    color: white;
}

.modern-table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.modern-table tbody tr {
    border: none;
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modern-table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

/* Society Name Styling */
.society-name strong {
    color: #4f231d;
    font-size: 1.1rem;
}

.society-name small {
    font-size: 0.85rem;
}

/* Contact Info Styling */
.contact-info div {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Registration Number */
.reg-number {
    font-family: 'Courier New', monospace;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Action Buttons */
.action-buttons .btn {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Group Headers - Original Style Restored */
tr.group {
    background-color: #f8f9fa;
    font-weight: bold;
    border-top: 2px solid #dee2e6;
}

tr.group td {
    padding: 5px;
    border-bottom: 1px solid #dee2e6;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    text-align: center;
}

/* Card View Styling */
.society-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border-left: 5px solid #4f231d;
}

.society-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.society-card .card-header {
    border-bottom: 2px solid #f8f9fa;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.society-card .society-title {
    color: #4f231d;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.society-card .society-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.society-card .info-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.society-card .info-icon {
    color: #4f231d;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    min-width: 20px;
}

/* Responsive Design for Societies Page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .search-filter-section {}

    .view-toggle {
        margin-top: 1rem;
    }
}

/* DataTable Enhancements for Societies */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 0.5rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #4f231d;
    box-shadow: 0 0 0 0.25rem rgba(79, 35, 29, 0.25);
}

/* Modal Styling for Societies */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #4f231d 0%, #6d3428 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.society-details .detail-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.society-details .detail-label {
    font-weight: 600;
    color: #4f231d;
    margin-bottom: 0.5rem;
}

/* ===================================== End Numismatic Societies Page Styles ===================================== */

/* ===================================== Society Details Page Styles ===================================== */

/* Exhibitions Table Styling */
#exhibitionsTable {
    font-size: 0.9rem;
}

#exhibitionsTable thead th {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 0.75rem;
}

#exhibitionsTable tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

#exhibitionsTable tbody tr:hover {
    background-color: #f5e6d3;
    transform: none;
    box-shadow: none;
}

.exhibition-title {
    font-weight: 600;
    color: #4f231d;
}


.exhibition-description {

    line-height: 1.4;
}

/* Status badges */
.badge {
    padding: 0.375rem 0.75rem;
}

/* Responsive design for exhibitions table */
@media (max-width: 768px) {
    #exhibitionsTable {}

    #exhibitionsTable thead th,
    #exhibitionsTable tbody td {
        padding: 0.5rem 0.25rem;
    }

    .exhibition-description {}
}

/* Leadership Team Styling */
.member-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.member-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.member-card:hover .member-img {
    border-color: #4f231d;
}

.member-name {
    font-weight: 600;
    color: #4f231d;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.member-position {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive design for leadership team */
@media (max-width: 768px) {
    .member-card {
        padding: 1rem 0.75rem;
    }

    .member-img {
        width: 60px;
        height: 60px;
    }

    .member-name {
        font-size: 0.9rem;
    }

    .member-position {
        font-size: 0.8rem;
    }
}

/* Note: Layout breakpoints:
   - Desktop (lg): 4 cards per row (col-lg-3)
   - Tablet (md): 2 cards per row (col-md-6) 
   - Mobile (sm): 2 cards per row (col-sm-6)
   - Extra small: 1 card per row (automatic) */

/* ===================================== End Society Details Page Styles ===================================== */

/* Society Information Card Section Divider */
.card-body hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #4f231d, transparent);
    margin: 2rem 0;
}

.card-body h5 {
    font-weight: 600;
    border-bottom: 2px solid #4f231d;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: #4f231d;
}

/* Society Information Card Label Styling */
.detail-item strong {
    color: #4f231d;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Share functionality styling */
.share-container {
    position: relative;
    display: inline-block;
}

.share-icon {
    cursor: pointer;
    font-size: 20px;
    color: #4f231d;
    padding: 5px;
    transition: color 0.3s ease;
}

.share-icon:hover {
    color: #6d3428;
}

.share-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 150px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.share-popup.active {
    opacity: 1;
    visibility: visible;
}

.share-popup a {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.share-popup a:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.whatsapp-share {
    background-color: #25D366;
}

.telegram-share {
    background-color: #0088cc;
}

.twitter-share {
    background-color: #1DA1F2;
}

.facebook-share {
    background-color: #1877F2;
}

.copy-link {
    background-color: #6c757d;
}

/* ============= MAIN MENU REDESIGN ============= */

/* Main menu container */
.mainmenu {
    width: 100%;
    min-height: 42px;
    background: #96281b;
    position: relative;
}

.mainmenu .container.menu {
    position: relative;
}

/* Mobile menu trigger button */
button[data-trigger="navbar_main"] {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1001;
}

button[data-trigger="navbar_main"]:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Mobile menu button visibility */
@media (max-width: 991.98px) {

    /* Show mobile menu button */
    button[data-trigger="navbar_main"] {
        display: block !important;
    }
}

/* Desktop Navigation */
@media (min-width: 992px) {

    /* Hide mobile trigger on desktop */
    button[data-trigger="navbar_main"] {
        display: none !important;
    }

    /* Desktop horizontal menu */
    #navbar_main {
        position: static !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #navbar_main .navbar-nav {
        flex-direction: row !important;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #navbar_main .nav-item {

        position: relative;
    }

    #navbar_main .nav-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -5px;
        top: 60%;
        transform: translateY(-50%);
        width: 1px;
        height: 20px;
        background-color: rgba(255, 255, 255, 0.3);
    }

    #navbar_main .nav-link {
        color: white !important;
        padding: 12px 8px 8px 8px;
        font-size: 12px;
        font-weight: bold;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    #navbar_main .nav-link:hover {
        color: #ffd700 !important;
    }

    /* Dropdown hover functionality */
    #navbar_main .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #navbar_main .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        display: block;
    }

    #navbar_main .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Hide offcanvas elements on desktop */
    .offcanvas-header {
        display: none !important;
    }

    .screen-darken {
        display: none !important;
    }

    /* Reset header positioning for desktop */
    .headerrightright {
        position: static !important;
        transform: none !important;
    }
}

/* Mobile Navigation Menu */
@media (max-width: 991.98px) {

    /* Mobile offcanvas menu */
    #navbar_main {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, #5c1a13 0%, #96281b 40%, #7a2015 100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    #navbar_main.show {
        transform: translateX(300px);
    }

    /* Mobile menu header */
    .offcanvas-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(0, 0, 0, 0.15);
        flex-shrink: 0;
    }

    .offcanvas-header::before {
        content: "☰ MENU";
        color: #ffd700;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .offcanvas-header .btn-close {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 14px;
        font-weight: bold;
        padding: 4px 10px;
        cursor: pointer;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .offcanvas-header .btn-close:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }

    /* Mobile menu items */
    #navbar_main .navbar-nav {
        flex-direction: column !important;
        width: 100%;
        padding: 8px 0;
        flex: 1;
    }

    #navbar_main .nav-item {
        width: 100%;
        margin: 0;
    }

    #navbar_main .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 13px 20px !important;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.3px;
        border-left: 3px solid transparent;
        transition: all 0.25s ease;
        display: flex;
        align-items: center;
        gap: 10px;
        text-transform: uppercase;
    }

    #navbar_main .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        border-left-color: #ffd700;
        color: #ffd700 !important;
        padding-left: 24px !important;
    }

    #navbar_main .nav-item.active .nav-link {
        background: rgba(255, 215, 0, 0.12);
        border-left-color: #ffd700;
        color: #ffd700 !important;
        font-weight: 600;
    }

    /* Separator lines between items */
    #navbar_main .nav-item+.nav-item {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Mobile dropdown styling */
    #navbar_main .dropdown-menu {
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        position: static;
        box-shadow: none;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
    }

    #navbar_main .dropdown-menu.show {
        display: block;
    }

    #navbar_main .dropdown-item {
        color: rgba(255, 255, 255, 0.75) !important;
        padding: 11px 20px 11px 36px;
        font-size: 13px;
        border: none;
        transition: all 0.25s ease;
        position: relative;
    }

    #navbar_main .dropdown-item::before {
        content: "›";
        position: absolute;
        left: 24px;
        color: rgba(255, 255, 255, 0.4);
        font-size: 16px;
        font-weight: bold;
    }

    #navbar_main .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffd700 !important;
        padding-left: 40px;
    }

    #navbar_main .dropdown-item:hover::before {
        color: #ffd700;
    }

    /* Screen darken overlay */
    .screen-darken {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
    }

    .screen-darken.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Remove old conflicting styles */

/* =================================== Books Admin Styles ====================== */
.book-image-thumb {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.book-image {
    height: 260px;
}

.status-badge {
    font-size: 0.75em;
}

.action-buttons {
    white-space: nowrap;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Image Upload Styles - Matching Coins Admin */
.drag-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.drag-drop-zone:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.drag-drop-zone.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-prompt i {
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-prompt p {
    color: #6c757d;
    margin: 5px 0;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.image-item {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    background: white;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.image-item .image-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.image-item .image-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.image-item .image-controls button {
    padding: 2px 6px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.image-item .btn-move {
    background: #6c757d;
    color: white;
}

.image-item .btn-delete {
    background: #dc3545;
    color: white;
}

.image-item .image-name {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    word-break: break-all;
}

.current-image-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    margin-top: 15px;
}

.current-image-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-image-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.current-image-info h6 {
    margin: 0 0 5px 0;
    color: #495057;
}

.current-image-info .text-muted {
    font-size: 14px;
}

/* Books page styles */
.book-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 4.2em;
    min-height: 67px !important;
}

.no-books-message {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 2rem 0;
}

.book-fallback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    min-height: 260px;
    color: #6c757d;
    font-size: 3rem;
}

.search-container {
    margin-bottom: 2rem;
}

/* =================================== Accessories page styles ====================== */
.accessory-item {
    margin-bottom: 20px;
}

.accessory-image {
    width: 100% !important;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.accessory-fallback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    min-height: 200px;
}

.accessory-fallback-icon i {
    font-size: 3rem;
    color: #6c757d;
}

.accessory-info {
    padding: 10px 0;
    text-align: center;
}

.accessory-title {
    font-weight: 600;
    color: #1e1f24;
    margin-bottom: 8px;
    min-height: 2.4em;
    line-height: 1.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.accessory-category {
    display: inline-block;
    background-color: #96281b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0;
}

.no-accessories-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1.1rem;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    min-height: 200px;
}

.image-placeholder svg {
    color: #96281b;
    margin-bottom: 8px;
}

.image-placeholder p {
    margin: 0;
    font-size: 1rem;
}

.image-placeholder small {
    color: #999;
    font-style: italic;
}

/* =================================== About Coin Page Styles ====================== */
/* Note: Enhanced styles are defined below - these basic styles are kept for fallback */

/* Print Styles */
@media print {

    .about-coin-sidebar,
    #backToTop,
    .hero-section {
        display: none !important;
    }

    .about-coin-content {
        padding-left: 0 !important;
        width: 100% !important;
    }

    .structure-item,
    .characteristic-item,
    .metal-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg, #2d1810 0%, #4a2318 100%);
    }

    .structure-item,
    .characteristic-item,
    .metal-item,
    .term-item {
        background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
        border-color: #404040;
        color: #e0e0e0;
    }

    .about-coin-sidebar {
        background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
        border-color: #404040;
    }
}

/* =================================== Enhanced About Coin Page Styles ====================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #96281b 0%, #cc650a 100%);
    color: white;
    padding: 60px 0;
    margin: -20px -15px 40px -15px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
    background-size: 100px 100px;
}

.hero-section .page-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-stats {
    margin-top: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Enhanced Sidebar */
.about-coin-sidebar {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(150, 40, 27, 0.1);
}

.about-coin-sidebar h4 {
    color: #96281b;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 3px solid #96281b;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
}

.about-coin-nav .nav-link {
    color: #495057;
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.about-coin-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #96281b, #cc650a);
    transition: width 0.3s ease;
    z-index: -1;
}

.about-coin-nav .nav-link:hover::before,
.about-coin-nav .nav-link.active::before {
    width: 100%;
}

.about-coin-nav .nav-link:hover,
.about-coin-nav .nav-link.active {
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

.about-coin-nav .nav-link i {
    margin-right: 12px;
    width: 20px;
    transition: transform 0.3s ease;
}

.about-coin-nav .nav-link:hover i {
    transform: scale(1.1);
}

.about-coin-nav .sub-nav {
    margin-left: 25px;
    margin-top: 8px;
    border-left: 2px solid #e9ecef;
    padding-left: 15px;
}

.about-coin-nav .sub-nav .nav-link {
    font-size: 0.9rem;
    padding: 8px 15px;
}

.badge {
    font-size: 0.7rem;
    border-radius: 12px;
}

/* Reading Progress */
.reading-progress {
    background: rgba(150, 40, 27, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.reading-progress h6 {
    color: #96281b;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(150, 40, 27, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #96281b, #cc650a);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Enhanced Content Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.content-section h2 {
    color: #96281b;
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
}

.content-section h2 i {
    margin-right: 15px;
    background: linear-gradient(45deg, #96281b, #cc650a);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(150, 40, 27, 0.3);
}

/* Enhanced Cards */
.structure-item,
.characteristic-item,
.metal-item {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(150, 40, 27, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.structure-item:hover,
.characteristic-item:hover,
.metal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.feature-tag {
    background: linear-gradient(45deg, #96281b, #cc650a);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(150, 40, 27, 0.3);
}

.intro-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(150, 40, 27, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-item:hover {
    background: rgba(150, 40, 27, 0.08);
    border-left-color: #96281b;
    transform: translateX(5px);
}

.feature-item i {
    margin-right: 15px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item svg {
    margin-right: 15px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-top: 2px;
    padding: 4px;
}

.feature-item div {
    flex: 1;
}

/* Image Enhancements */
.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.coin-sample {
    max-height: 280px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-caption {
    background: rgba(150, 40, 27, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #495057;
    border-left: 4px solid #96281b;
}

.image-caption i {
    color: #96281b;
    margin-right: 8px;
}

/* Edge Types Grid */
.edge-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.edge-type-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.edge-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #96281b, #cc650a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.edge-type-card:hover::before {
    transform: scaleX(1);
}

.edge-type-card:hover {
    border-color: #96281b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(150, 40, 27, 0.15);
}

.edge-type-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.edge-type-card h5 {
    color: #96281b;
    margin-bottom: 10px;
    font-weight: 600;
}

.edge-type-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Enhanced Terminology Grid */
.terminology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.term-item {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.term-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 40, 27, 0.05) 0%, rgba(204, 101, 10, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.term-item:hover::before {
    opacity: 1;
}

.term-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #96281b;
}

.term-icon {
    background: linear-gradient(45deg, #96281b, #cc650a);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(150, 40, 27, 0.3);
}

.term-example {
    background: rgba(150, 40, 27, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
    border-left: 3px solid #96281b;
}

/* Enhanced Grading Section */
.grading-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.grading-fact {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.grading-fact:hover {
    transform: translateY(-3px);
}

.grading-fact h5 {
    color: #96281b;
    margin: 15px 0 10px;
    font-weight: 600;
}

/* Enhanced Grade Items */
.grading-scale {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.grading-scale h3 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.grade-item {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
}

.grade-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: #96281b;
}

.grade-number {
    background: linear-gradient(45deg, #96281b, #cc650a);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(150, 40, 27, 0.3);
    position: relative;
}

/* Grade-specific colors */
.grade-number.perfect {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.grade-number.gem {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.grade-number.mint {
    background: linear-gradient(45deg, #007bff, #6610f2);
}

.grade-number.about-unc {
    background: linear-gradient(45deg, #17a2b8, #6f42c1);
}

.grade-number.ext-fine {
    background: linear-gradient(45deg, #fd7e14, #e83e8c);
}

.grade-number.very-fine {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
}

.grade-number.fine {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.grade-number.very-good {
    background: linear-gradient(45deg, #343a40, #6c757d);
}

.grade-info h4 {
    color: #96281b;
    margin-bottom: 8px;
    font-weight: 600;
}

.grade-info p {
    margin-bottom: 15px;
    color: #6c757d;
    line-height: 1.5;
}

.grade-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(150, 40, 27, 0.1);
    color: #96281b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(150, 40, 27, 0.2);
}

/* Back to Top Button */
#backToTop {
    background: linear-gradient(45deg, #96281b, #cc650a);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(150, 40, 27, 0.3);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(150, 40, 27, 0.4);
}

/* Animation Classes */
.fade-in-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Metal Color Classes */
.text-copper {
    color: #b87333 !important;
}

.text-silver {
    color: #c0c0c0 !important;
}

.text-nickel {
    color: #8c8c8c !important;
}

.text-aluminum {
    color: #a8a8a8 !important;
}

.text-brass {
    color: #b5651d !important;
}

.text-bronze {
    color: #cd7f32 !important;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        padding: 40px 0;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .about-coin-content {
        padding-left: 0;
        margin-top: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section {
        margin: -20px 0 30px 0;
        border-radius: 0 0 15px 15px;
    }
}

@media (max-width: 768px) {
    .about-coin-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .structure-item,
    .characteristic-item,
    .metal-item {
        padding: 20px;
    }

    .terminology-grid {
        grid-template-columns: 1fr;
    }

    .grade-item {
        flex-direction: column;
        text-align: center;
    }

    .grade-number {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .edge-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .hero-section {
        padding: 30px 0;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .coin-sample {
        max-height: 200px;
    }

    .about-coin-nav .nav-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h2 i {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .hero-section .page-title {
        font-size: 2rem;
    }

    .grading-overview {
        padding: 20px;
    }
}

/* Print Styles */
@media print {

    .about-coin-sidebar,
    #backToTop,
    .hero-section {
        display: none !important;
    }

    .about-coin-content {
        padding-left: 0 !important;
        width: 100% !important;
    }

    .structure-item,
    .characteristic-item,
    .metal-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg, #2d1810 0%, #4a2318 100%);
    }

    .structure-item,
    .characteristic-item,
    .metal-item,
    .term-item {
        background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
        border-color: #404040;
        color: #e0e0e0;
    }

    .about-coin-sidebar {
        background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
        border-color: #404040;
    }
}

/* =================================== CRITICAL FIX - Override Dark Mode Issues ====================== */
/* Force light backgrounds and text colors to fix black display issue */

.structure-item,
.characteristic-item,
.metal-item,
.term-item {
    background: white !important;
    color: #333 !important;
    border: 1px solid #e9ecef !important;
}

.about-coin-sidebar {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #333 !important;
}

.hero-section {
    background: linear-gradient(135deg, #96281b 0%, #cc650a 100%) !important;
    color: white !important;
}

.card-header,
.feature-item,
.edge-type-card,
.grading-fact,
.grade-item {
    background: white !important;
    color: #333 !important;
}

/* Ensure all text is readable */


.intro-text {
    color: #495057 !important;
}

/* Additional text visibility fixes */
.feature-item strong,
.feature-item div,
.feature-item span {
    color: #333 !important;
}



.image-caption,
.image-caption i {
    color: #495057 !important;
}

/* =================================== END CRITICAL FIX ====================== */

/* =================================== British India Coins Section Styles ====================== */

/* British India Overview */
.british-india-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.british-india-overview h3 {
    color: #96281b;
    margin-bottom: 15px;
    font-weight: 700;
}

/* British India Grid */
.british-india-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

/* British India Items */
.british-india-item {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.british-india-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #96281b;
}

.british-india-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 40, 27, 0.03) 0%, rgba(204, 101, 10, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.british-india-item:hover::before {
    opacity: 1;
}

/* Item Numbers */
.item-number {
    background: linear-gradient(45deg, #96281b, #cc650a);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(150, 40, 27, 0.3);
    position: relative;
    z-index: 1;
}

/* Item Content */
.item-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.item-content h4 {
    color: #96281b;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

.item-content h5 {
    color: #96281b;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Details Lists */
.details-list {
    margin-top: 15px;
}

.details-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list>ul>li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(150, 40, 27, 0.1);
    position: relative;
    padding-left: 20px;
}

.details-list>ul>li::before {
    content: '▸';
    color: #96281b;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

.details-list>ul>li:last-child {
    border-bottom: none;
}

.details-list ul ul {
    margin-top: 8px;
    margin-left: 15px;
}

.details-list ul ul li {
    margin-bottom: 6px;
    padding: 4px 0;
    padding-left: 15px;
    border-bottom: none;
    font-size: 0.95rem;
}

.details-list ul ul li::before {
    content: '•';
    color: #cc650a;
    position: absolute;
    left: 0;
    top: 4px;
}

/* Mint Masters Grid */
.mint-masters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 15px;
}

.ruler-section {
    background: rgba(150, 40, 27, 0.05);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #96281b;
}

.ruler-section h5 {
    color: #96281b;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ruler-section h5 i {
    margin-right: 8px;
    color: #cc650a;
}

.ruler-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ruler-section li {
    margin-bottom: 8px;
    padding: 6px 0;
    padding-left: 15px;
    position: relative;
    font-size: 0.95rem;
}

.ruler-section li::before {
    content: '👑';
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 0.8rem;
}

/* Responsive Design for British India Section */
@media (max-width: 992px) {
    .british-india-item {
        flex-direction: column;
        text-align: center;
    }

    .item-number {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .british-india-item {
        padding: 20px;
    }

    .british-india-overview {
        padding: 20px;
    }

    .mint-masters-grid {
        gap: 15px;
    }

    .ruler-section {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .item-content h4 {
        font-size: 1.1rem;
    }

    .item-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .details-list ul ul {
        margin-left: 10px;
    }
}

/* Print Styles for British India Section */
@media print {
    .british-india-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 15px;
    }

    .item-number {
        background: #96281b !important;
        color: white !important;
    }
}

/* Indian Mints Page Styles */
.indian-mints-sidebar {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(150, 40, 27, 0.1);
}

.indian-mints-sidebar h4 {
    color: #96281b;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 3px solid #96281b;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
}

.indian-mints-nav .nav-link {
    color: #495057;
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.indian-mints-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #96281b, #cc650a);
    transition: width 0.3s ease;
    z-index: -1;
}

.indian-mints-nav .nav-link:hover::before,
.indian-mints-nav .nav-link.active::before {
    width: 100%;
}

.indian-mints-nav .nav-link:hover,
.indian-mints-nav .nav-link.active {
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

.indian-mints-nav .nav-link i {
    margin-right: 12px;
    width: 20px;
    transition: transform 0.3s ease;
}

.indian-mints-nav .nav-link:hover i {
    transform: scale(1.1);
}

.indian-mints-nav .sub-nav {
    margin-left: 25px;
    margin-top: 8px;
    border-left: 2px solid #e9ecef;
    padding-left: 15px;
}

.indian-mints-nav .sub-nav .nav-link {
    font-size: 0.9rem;
    padding: 8px 15px;
}

/* Reading Progress for Indian Mints */
.reading-progress {
    background: rgba(150, 40, 27, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(150, 40, 27, 0.1);
}

.reading-progress h6 {
    color: #96281b;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.reading-progress .progress {
    height: 8px;
    border-radius: 10px;
    background: rgba(150, 40, 27, 0.1);
}

.reading-progress .progress-bar {
    background: linear-gradient(90deg, #96281b, #cc650a);
    border-radius: 10px;
}

.page-header {
    color: #333;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.overview-cards {
    margin: 30px 0;
}

.overview-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.overview-card .card-icon {
    text-align: center;
    margin-bottom: 20px;
}

.overview-card .card-icon i {
    font-size: 3rem;
}

.overview-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.overview-card ul {
    list-style: none;
    padding: 0;
}

.overview-card li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.overview-card li:last-child {
    border-bottom: none;
}

.spmcil-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border-left: 5px solid #2196f3;
}

.spmcil-info h3 {
    color: #1976d2;
    margin-bottom: 20px;
    font-weight: 600;
}

.spmcil-details {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Indian Mints Content Styling - Matching About Coin Page */
.indian-mints-content .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.indian-mints-content .content-section h2 {
    color: #96281b;
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
}

.indian-mints-content .content-section h2 i {
    margin-right: 15px;
    background: linear-gradient(45deg, #96281b, #cc650a);
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(150, 40, 27, 0.3);
}

.indian-mints-content .section-intro {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 25px;
    font-weight: 500;
}

.overview-cards {
    margin: 30px 0;
}

.overview-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(150, 40, 27, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.overview-card .card-icon {
    text-align: center;
    margin-bottom: 20px;
}

.overview-card .card-icon i {
    font-size: 3rem;
}

.overview-card h3 {
    color: #96281b;
    margin-bottom: 15px;
    font-weight: 600;
}

.overview-card ul {
    list-style: none;
    padding: 0;
}

.overview-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(150, 40, 27, 0.1);
    transition: all 0.3s ease;
}

.overview-card li:hover {
    color: #96281b;
    padding-left: 10px;
}

.overview-card li:last-child {
    border-bottom: none;
}

.spmcil-info {
    background: linear-gradient(135deg, rgba(150, 40, 27, 0.05) 0%, rgba(204, 101, 10, 0.05) 100%);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border: 1px solid rgba(150, 40, 27, 0.1);
    border-left: 5px solid #96281b;
}

.spmcil-info h3 {
    color: #96281b;
    margin-bottom: 20px;
    font-weight: 600;
}

.spmcil-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(150, 40, 27, 0.1);
}

.mint-facility,
.currency-facility {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    margin: 30px 0;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(150, 40, 27, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mint-facility:hover,
.currency-facility:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.facility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(150, 40, 27, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.facility-header h3 {
    color: #96281b;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.facility-header h3 i {
    margin-right: 10px;
    background: linear-gradient(45deg, #96281b, #cc650a);
    color: white !important;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(150, 40, 27, 0.3);
}

.establishment-year {
    background: linear-gradient(45deg, #96281b, #cc650a);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(150, 40, 27, 0.3);
}

.facility-details h4 {
    color: #96281b;
    margin: 25px 0 15px 0;
    font-weight: 600;
    border-bottom: 2px solid #96281b;
    padding-bottom: 5px;
    display: inline-block;
}

.address-info {
    background: rgba(150, 40, 27, 0.03);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #96281b;
}

.address-info p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #495057;
}

.facility-details ul {
    list-style: none;
    padding: 0;
}

.facility-details ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(150, 40, 27, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.facility-details ul li:hover {
    color: #96281b;
    padding-left: 15px;
}

.facility-details ul li:before {
    content: '•';
    color: #96281b;
    margin-right: 10px;
    font-weight: bold;
}

.facility-details ul li:last-child {
    border-bottom: none;
}

.facility-image {
    text-align: center;
    margin-bottom: 25px;
}

.mint-photo {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(150, 40, 27, 0.1);
    width: 100%;
    height: 100%;
}

.mint-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.image-placeholder {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 15px;
    border: 2px dashed rgba(150, 40, 27, 0.3);
    color: #96281b;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    background: linear-gradient(145deg, rgba(150, 40, 27, 0.05) 0%, rgba(204, 101, 10, 0.05) 100%);
    border-color: #96281b;
}

.image-caption {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(150, 40, 27, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #96281b;
    border-left: 4px solid #96281b;
}

.mint-stats {
    background: linear-gradient(145deg, rgba(150, 40, 27, 0.03) 0%, rgba(204, 101, 10, 0.03) 100%);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px solid rgba(150, 40, 27, 0.1);
}

.mint-stats h5 {
    color: #96281b;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.mint-stats h5:before {
    content: '📊';
    margin-right: 10px;
    font-size: 1.2rem;
}

.mint-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mint-stats ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(150, 40, 27, 0.1);
    color: #495057;
    transition: all 0.3s ease;
}

.mint-stats ul li:hover {
    color: #96281b;
    padding-left: 10px;
}

.mint-stats ul li:last-child {
    border-bottom: none;
}

.mint-stats ul li strong {
    color: #96281b;
}

.image-placeholder i {
    color: #96281b;
    margin-bottom: 15px;
    font-size: 2rem;
}

.image-caption {
    color: white;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    font-size: 0.9rem;
    margin-top: -5px;
}

.mint-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.mint-stats h5 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.mint-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mint-stats li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.mint-stats li:last-child {
    border-bottom: none;
}

.historical-mints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.historical-mint-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(150, 40, 27, 0.1);
    border-left: 5px solid #96281b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.historical-mint-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.historical-mint-card h3 {
    color: #96281b;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.historical-mint-card h3 i {
    margin-right: 10px;
    background: linear-gradient(45deg, #96281b, #cc650a);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(150, 40, 27, 0.3);
}

.historical-details p {
    margin: 12px 0;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
}

.historical-details p strong {
    color: #96281b;
    font-weight: 600;
}

.stats-dashboard {
    margin: 30px 0;
}

.stats-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.coin-stats {
    border-left: 5px solid #ffc107;
}

.currency-stats {
    border-left: 5px solid #28a745;
}

.stats-card h3 {
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.security-features-grid {
    margin: 30px 0;
}

.security-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    border-left: 5px solid #dc3545;
}

.security-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.security-card ul {
    list-style: none;
    padding: 0;
}

.security-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.security-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.security-card li:last-child {
    border-bottom: none;
}

.facility-security {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.facility-security h3 {
    color: #c62828;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.security-measure {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.security-measure h4 {
    color: #333;
    margin: 15px 0;
    font-weight: 600;
}

.security-measure ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.security-measure li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .lead {
        font-size: 1rem;
    }

    .facility-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .historical-mints-grid {
        grid-template-columns: 1fr;
    }

    .indian-mints-sidebar {
        position: relative;
        margin-bottom: 20px;
    }

    .mint-facility,
    .currency-facility {
        padding: 20px;
    }
}



/* =================================== Coin Details Redesign ====================== */
.coin-specs-list {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e7e7e7;
    border-top: 1px solid #e7e7e7;
    margin-bottom: 15px;
    padding-bottom: 5px;
    padding-top: 5px;
    margin-top: 10px;
}

.coin-specs-item {
    padding-right: 20px;
    margin-right: 20px;
    border-right: 1px solid #e7e7e7;
    color: #62636C;
    font-size: 14px;
    text-align: center;
}

.coin-specs-item:last-child {
    border-right: none;
}

.coin-specs-label {
    font-weight: 600;
    color: #96281b;
    margin-bottom: 2px;
}

.coin-specs-value {
    color: #333;
}

.coin-details-table {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e5e5e5;
}

.coin-details-row {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

.coin-details-label {
    flex: 0 0 30%;
    max-width: 30%;
    font-weight: 600;
    color: #333;
    padding-left: 10px;
}

.coin-details-value {
    flex: 0 0 70%;
    max-width: 70%;
    color: #333;
}

@media (max-width: 768px) {
    .coin-specs-item {
        width: 50%;
        border-right: none;
        margin-right: 0;
        padding-right: 10px;
        margin-bottom: 10px;
    }

    .coin-details-row {
        flex-direction: column;
    }

    .coin-details-label,
    .coin-details-value {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
    }

    .coin-details-label {
        color: #96281b;
        margin-bottom: 5px;
    }
}

/* =================================== Custom Dropdown Styling (Main Menu) =================================== */
.mainmenu .dropdown-menu {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    margin-top: 10px;
    background-color: #ffffff;
    animation: fadeInUp 0.3s ease forwards;
}

/* Add a small arrow/triangle at the top */
.mainmenu .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.mainmenu .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mainmenu .dropdown-item:hover,
.mainmenu .dropdown-item:focus {
    background-color: #fff5f6;
    /* Very light red tint */
    color: #96281b;
    /* Theme Red */
    border-left: 3px solid #96281b;
    padding-left: 25px;
}

/* Dropdown Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Ensure dropdowns on mobile behave nicely */
@media (max-width: 991.98px) {
    .mainmenu .dropdown-menu {
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 0;
        padding: 0;
    }

    .mainmenu .dropdown-menu::before {
        display: none;
    }
}


/* =================================== Custom Dropdown Styling End =================================== */

/* Force fluid containers on smaller screens to ensure responsiveness */
@media (max-width: 1199px) {

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {

    /* Use 95% container width to give tables and content more room */
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .mainmenu .container {
        max-width: 95% !important;
    }

    #navbar_main .nav-link {
        padding: 12px 22px 8px 22px !important;
    }
}

/* ================================================
   SEARCH DROPDOWN STYLES
   ================================================ */
.search-wrapper {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 480px;
    overflow-y: auto;
    display: none;
    animation: searchDropdownFadeIn 0.2s ease;
}

.search-dropdown.active {
    display: block;
}

@keyframes searchDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling */
.search-dropdown::-webkit-scrollbar {
    width: 5px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #fafafa;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Result item */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
    gap: 12px;
}

.search-result-item:hover {
    background-color: #f8f4f0;
    color: #333;
    text-decoration: none;
}

/* Result image */
.search-result-img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f0eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #96281b;
    font-size: 18px;
}

.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Result info */
.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.search-result-title mark {
    background: #fff3cd;
    color: #222;
    padding: 0 1px;
    border-radius: 2px;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 11.5px;
    color: #777;
    flex-wrap: wrap;
}

/* Category badge */
.search-category-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.search-result-year {
    color: #888;
}

.search-result-price {
    font-weight: 600;
    color: #2e7d32;
}

/* View all link */
.search-view-all {
    display: block;
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #96281b;
    text-decoration: none;
    background: #fdf8f5;
    border-top: 1px solid #f0e8e3;
    border-radius: 0 0 8px 8px;
    transition: background 0.15s ease;
}

.search-view-all:hover {
    background: #f5ece5;
    color: #96281b;
    text-decoration: none;
}

.search-view-all i {
    margin-right: 5px;
}

/* Loading & no results */
.search-loading,
.search-no-results {
    padding: 20px 14px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.search-loading i {
    margin-right: 6px;
    color: #96281b;
}

.search-no-results i {
    color: #ccc;
    font-size: 16px;
    margin-right: 5px;
}

/* ================================================
   ADVANCED SEARCH PAGE STYLES
   ================================================ */
.search-page-header {
    background: linear-gradient(135deg, #96281b 0%, #c0392b 100%);
    padding: 30px 0;
    margin-bottom: 25px;
}

.search-page-header h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.search-page-input-group {
    max-width: 700px;
}

.search-page-input-group .form-control {
    padding: 12px 18px;
    font-size: 15px;
    border: none;
    border-radius: 8px 0 0 8px;
}

.search-page-input-group .btn {
    padding: 12px 24px;
    font-size: 15px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
}

.search-page-input-group .btn:hover {
    background: #333;
}

/* Filter sidebar */
.search-filters-card {
    background: #fff;
    border: 1px solid #e8e3de;
    border-radius: 8px;
    padding: 18px;
}

.search-filters-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #96281b;
}

.search-filter-section {
    margin-bottom: 18px;
}

.search-filter-section h6 {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-filter-section .form-check {
    margin-bottom: 4px;
}

.search-filter-section .form-check-label {
    font-size: 13px;
    color: #555;
}

.search-filter-section .form-check-input:checked {
    background-color: #96281b;
    border-color: #96281b;
}

/* Results count */
.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #fdf8f5;
    border-radius: 6px;
    border: 1px solid #f0e8e3;
}

.search-results-count {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.search-results-count strong {
    color: #96281b;
}

/* Result cards */
.search-result-card {
    background: #fff;
    border: 1px solid #e8e3de;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    display: flex;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #333;
    text-decoration: none;
}

.search-result-card-img {
    width: 110px;
    min-width: 110px;
    min-height: 90px;
    background: #f5f0eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #96281b;
    font-size: 32px;
}

.search-result-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-card-body {
    padding: 12px 15px;
    flex: 1;
    min-width: 0;
}

.search-result-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-card-title mark {
    background: #fff3cd;
    color: #222;
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.search-result-card-meta i {
    width: 14px;
    text-align: center;
    color: #96281b;
}

.search-result-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #2e7d32;
}

/* Pagination */
.search-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.search-pagination a,
.search-pagination span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    color: #555;
    transition: all 0.15s ease;
}

.search-pagination a:hover {
    background: #f5ece5;
    border-color: #96281b;
    color: #96281b;
}

.search-pagination .active-page {
    background: #96281b;
    color: #fff;
    border-color: #96281b;
}

/* Mobile responsive */
@media (max-width: 767px) {
    #mobile-search-results-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        width: 100vw;
        max-height: 70vh;
        border-radius: 0;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }

    .search-dropdown {
        border-radius: 0 0 6px 6px;
    }

    .search-result-item {
        padding: 8px 10px;
        gap: 10px;
    }

    .search-result-img {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .search-result-title {
        font-size: 12.5px;
    }

    .search-result-meta {
        font-size: 10.5px;
        gap: 5px;
    }

    .search-result-card {
        flex-direction: column;
    }

    .search-result-card-img {
        width: 100%;
        min-height: 120px;
    }

    .search-page-header h1 {
        font-size: 18px;
    }
}


/* =================================== User Menu & Auth Styles ====================== */

/* Sign In Button */
.signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #94003c, #c0392b);
    color: #fff !important;
    border: none;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.signin-btn:hover {
    background: linear-gradient(135deg, #c0392b, #94003c);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(148, 0, 60, 0.3);
    color: #fff !important;
}

.signin-btn i {
    font-size: 12px;
}

/* User Menu (logged in) */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #640310;
    border: none;
    padding: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: #fdf2f4;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #94003c, #c0392b);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.user-name-display {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #96281b;
}

.user-menu-btn:hover .user-name-display {
    color: #FFFFFF;
}

.user-menu-btn .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
    color: #96281b;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1050;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #94003c, #c0392b);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-dropdown-header strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.user-dropdown-header small {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.user-dropdown-links {
    padding: 6px 0;
}

.user-dropdown-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.user-dropdown-links a:hover {
    background: #fdf2f4;
    color: #94003c;
}

.user-dropdown-links a i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #94003c;
}

.user-dropdown-links hr {
    margin: 4px 16px;
    border: none;
    border-top: 1px solid #f0f0f0;
}

.user-dropdown-links .logout-link {
    color: #c0392b;
}

.user-dropdown-links .logout-link i {
    color: #c0392b;
}

/* Responsive */
@media (max-width: 991.98px) {
    .user-name-display {
        display: none;
    }

    .user-menu-btn .fa-chevron-down {
        display: none;
    }

    .signin-btn span {
        display: none;
    }

    .signin-btn {
        padding: 6px 10px;
    }

    .user-dropdown {
        right: -20px;
    }
}

/* =================================== Add to Collection Styles ====================== */
/* Add to Collection Button */
.atc-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #94003c, #c0392b);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-decoration: none;
}

.atc-trigger-btn:hover {
    box-shadow: 0 4px 14px rgba(148, 0, 60, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.atc-trigger-btn i {
    font-size: 13px;
}

/* Modal */
.atc-modal {
    border-radius: 14px;
    border: none;
    overflow: hidden;
}

.atc-header {
    background: linear-gradient(135deg, #94003c, #c0392b);
    color: #fff;
    padding: 14px 20px;
    border: none;
}

.atc-header .modal-title {
    color: #fff;
}

.atc-header .btn-close {
    color: #fff;
    opacity: 1;
    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 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.atc-header .modal-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atc-body {
    padding: 20px;
}

/* Auth Tabs */
.atc-auth-tabs {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 16px;
}

.atc-auth-tabs .nav-link {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    border: none;
    padding: 8px 16px;
}

.atc-auth-tabs .nav-link.active {
    color: #94003c;
    border-bottom: 2px solid #94003c;
}

/* Fields */
.atc-field {
    margin-bottom: 12px;
}

.atc-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    text-align: left;
}

.atc-input-wrap {
    position: relative;
}

.atc-input-wrap i,
.atc-input-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 13px;
    z-index: 2;
    width: 14px;
    text-align: center;
}

.atc-input-wrap input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    background: #fafafa;
    transition: 0.2s;
    position: relative;
}

.atc-input-wrap input:focus {
    border-color: #94003c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 0, 60, 0.08);
    background: #fff;
}

.atc-field-row {
    display: flex;
    gap: 10px;
}

.atc-field-row .atc-field {
    flex: 1;
}

/* Buttons */
.atc-btn-submit {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #94003c, #c0392b);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.atc-btn-submit:hover {
    box-shadow: 0 4px 14px rgba(148, 0, 60, 0.3);
}

.atc-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Errors & Success */
.atc-error {
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 8px;
}

.atc-success {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    color: #059669;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 8px;
}

/* Coin Info */
.atc-coin-info {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atc-coin-info i {
    color: #94003c;
    font-size: 16px;
}

.atc-section-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Grade Rows */
.atc-grade-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fafafa;
    transition: 0.2s;
}

.atc-grade-row:hover {
    border-color: #ddd;
    background: #fff;
}

.atc-grade-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
}

.atc-grade-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    min-width: 55px;
    text-align: center;
    display: inline-block;
}

.atc-grade-badge.cir {
    background: #95a5a6;
}

.atc-grade-badge.fine {
    background: #3498db;
}

.atc-grade-badge.unc {
    background: #e67e22;
}

.atc-grade-badge.gunc {
    background: #27ae60;
}

.atc-grade-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.atc-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.atc-qty-btn:hover {
    background: #94003c;
    color: #fff;
    border-color: #94003c;
}

.atc-qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
}

.atc-qty-input::-webkit-outer-spin-button,
.atc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Exchange */
.atc-exchange-row {
    margin: 12px 0;
}

.atc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fafafa;
}

.atc-checkbox-label input[type="checkbox"] {
    accent-color: #94003c;
    width: 16px;
    height: 16px;
}

/* Photos */
.atc-photos-section {
    margin: 12px 0;
}

.atc-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.atc-photo-add {
    width: 64px;
    height: 64px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    font-size: 20px;
    transition: 0.2s;
}

.atc-photo-add:hover {
    border-color: #94003c;
    color: #94003c;
}

.atc-photo-preview {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
}

.atc-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atc-photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(192, 57, 43, 0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Details heading flex */
.details-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
}

.details-heading-row h4 {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .atc-field-row {
        flex-direction: column;
        gap: 0;
    }

    .atc-grade-row {
        padding: 6px 8px;
    }

    /* ... existing content from 5447 ... */
    .atc-grade-badge {
        min-width: 45px;
        font-size: 10px;
    }
}

#coinSearch::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

#coinSearch:-ms-input-placeholder {
    color: #888 !important;
}

#coinSearch::-ms-input-placeholder {
    color: #888 !important;
}

#coinSearch:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 35, 29, 0.25);
    border-color: #4f231d !important;
    outline: none;
}

/* Scroll to top button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    border: 2px solid white;
    outline: none;
    background-color: #4f231d;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    font-size: 16px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

#backToTopBtn:hover {
    background-color: #6a3028;
    /* Add a dark-grey background on hover */
}

/* --- Styles moved from british-india-coins.php --- */
/* Filter section styling */
.filter-section-heading {
    color: #4f231d;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 14px;
    text-transform: uppercase;
}

.filter-divider {
    margin: 20px 0;
    border-top: 1px solid #dee2e6;
}

/* Group header styling */
tr.group {
    background-color: #f8f9fa;
    font-weight: bold;
    border-top: 2px solid #dee2e6;
}

tr.group td {
    padding: 10px 8px;
    border-bottom: 1px solid #dee2e6;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}



/* Fix mobile navbar collapse for filter accordion */
@media (max-width: 767px) {
    .navbar-collapse {
        display: none;
    }

    .navbar-collapse.show {
        display: block !important;
    }

    .navbar-collapse.collapsing {
        display: block !important;
    }

    .accordion {
        margin-top: 10px;
    }
}

/* ===== Toggle Column & Expand/Collapse ===== */

/* Toggle column: hidden on desktop, visible on smaller screens */
.col-toggle {
    width: 30px;
    padding: 0 !important;
}

/* Hide toggle on desktop */
@media (min-width: 992px) {

    .col-toggle,
    #myTable td.row-toggle {
        display: none;
    }
}

/* Toggle icon styling */
td.row-toggle {
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    width: 30px;
    padding: 4px !important;
}

td.row-toggle .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #94003c;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    user-select: none;
}

/* Child details row */
tr.child-row {
    background: #f9f6f2;
}

tr.child-row td {
    padding: 10px 14px !important;
}

tr.child-row ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

tr.child-row ul li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

tr.child-row ul li:last-child {
    border-bottom: none;
}

/* Override share button backgrounds inside child rows */
tr.child-row .whatsapp-share,
tr.child-row .telegram-share,
tr.child-row .twitter-share,
tr.child-row .facebook-share,
tr.child-row .copy-link {
    background-color: transparent !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

tr.child-row ul li .child-label {
    font-weight: 600;
    color: #555;
    margin-right: 8px;
    display: inline-block;
    min-width: 100px;
}

/* Child row share icon hover & click effects */
tr.child-row a {
    transition: transform 0.15s ease, opacity 0.15s ease;
    display: inline-block;
    cursor: pointer;
}

tr.child-row a:hover {
    transform: scale(1.25);
    opacity: 0.85;
}

tr.child-row a:active {
    transform: scale(0.9);
}

/* ===== Responsive Table Column Hiding ===== */
/* Columns: 1=toggle, 2=ID, 3=Year, 4=Mint, 5=Metal, 6=Mintage, 7=Rarity, 8=Circ, 9=UNC, 10=Photo, 11=Video, 12=Details, 13=Share */

/* Tablet landscape (< 992px): Hide desktop-only columns */
@media (max-width: 991px) {

    #myTable th:nth-child(5),
    #myTable td:nth-child(5),
    #myTable th:nth-child(6),
    #myTable td:nth-child(6),
    #myTable th:nth-child(7),
    #myTable td:nth-child(7),
    #myTable th:nth-child(10),
    #myTable td:nth-child(10),
    #myTable th:nth-child(11),
    #myTable td:nth-child(11),
    #myTable th:nth-child(13),
    #myTable td:nth-child(13) {
        display: none;
    }
}

/* Mobile (< 768px): Also hide price columns */
@media (max-width: 767px) {

    #myTable th:nth-child(8),
    #myTable td:nth-child(8),
    #myTable th:nth-child(9),
    #myTable td:nth-child(9) {
        display: none;
    }

    /* Removed .productlistright overflow-x: auto because it breaks position: sticky for headers */
}

#myTable {
    table-layout: auto;
    word-break: break-word;
}

@media (max-width: 767px) {
    .coins-search-wrap {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* =================================== Contribute Images Section ====================== */
.contribute-images-section {
    margin-top: 15px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
}

.contribute-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.contribute-icon {
    font-size: 16px;
}

.contribute-title {
    color: #643206;
    font-size: 14px;
}

.contribute-dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    background: #fff;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contribute-dropzone:hover,
.contribute-dropzone.dragover {
    border-color: #96281b;
    background: #fef7f5;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #888;
}

.dropzone-content i {
    font-size: 24px;
    color: #96281b;
}

.dropzone-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.dropzone-content small {
    font-size: 11px;
    color: #aaa;
}

.browse-link {
    color: #96281b;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.contribute-previews {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.preview-add {
    aspect-ratio: 1;
    border-radius: 6px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: border-color 0.3s;
}

.preview-add:hover {
    border-color: #96281b;
    color: #96281b;
}

.contribute-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.contribute-submit-btn {
    flex: 1;
    padding: 8px 12px;
    background: #96281b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contribute-submit-btn:hover {
    background: #7a2016;
}

.contribute-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.contribute-clear-btn {
    padding: 8px 12px;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.contribute-clear-btn:hover {
    background: #e0e0e0;
}

.contribute-status {
    margin-top: 8px;
    font-size: 12px;
    border-radius: 4px;
    padding: 0;
}

.contribute-status-info {
    color: #666;
    padding: 6px 8px;
}

.contribute-status-success {
    color: #155724;
    background: #d4edda;
    padding: 6px 8px;
}

.contribute-status-error {
    color: #721c24;
    background: #f8d7da;
    padding: 6px 8px;
}

.contribute-limit-msg {
    text-align: center;
    color: #155724;
    background: #d4edda;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
}

.community-photos-grid {
    margin-bottom: 10px;
}

.community-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.community-photos-grid img {
    height: 60px;
    width: 60px;
    border: 2px solid #c3c3c3;
    padding: 2px;
    margin: 0 4px 4px 0;
    cursor: pointer;
    object-fit: cover;
    transition: border-color 0.3s;
}

.community-photos-grid img:hover {
    border-color: #96281b;
}

@media (max-width: 575px) {
    .contribute-previews {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Authentication Pages (Sign In, Sign Up, Forgot Password) --- */
.auth-page-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background-color: #f8f9fa;
    font-family: 'Open Sans', sans-serif;
}

.auth-form-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-form-card h2 {
    color: #96281b;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.auth-form-card .subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-form-card .form-group {
    margin-bottom: 18px;
}

.auth-form-card .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.auth-form-card .input-wrap {
    position: relative;
}

.auth-form-card .input-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
}

.auth-form-card .input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fbfbfb;
}

.auth-form-card .input-wrap input:focus {
    outline: none;
    border-color: #96281b;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(150, 40, 27, 0.1);
}

.auth-form-card .input-wrap .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    padding: 5px;
}

.auth-form-card .input-wrap .toggle-password:hover {
    color: #96281b;
}

.auth-form-card .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-form-card .form-options a {
    color: #96281b;
    text-decoration: none;
    font-weight: 600;
}

.auth-form-card .form-options a:hover {
    text-decoration: underline;
}

.auth-form-card .btn-auth {
    width: 100%;
    background: #96281b;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px rgba(150, 40, 27, 0.2);
}

.auth-form-card .btn-auth:hover {
    background: #7a1f15;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider hr {
    flex-grow: 1;
    border: none;
    border-top: 1px solid #eee;
    margin: 0 10px;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.auth-footer a {
    color: #96281b;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #96281b;
    border-radius: 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    background: #96281b;
    color: #fff;
}

/* Signup specific */
.password-row {
    display: flex;
    gap: 15px;
}

.password-row .form-group {
    flex: 1;
}

.user-id-info {
    background: #f0f7ff;
    border: 1px solid #cce3ea;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #31708f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-id-info i {
    font-size: 16px;
}

/* Alert Boxes */
.alert-box {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: #fdf2f2;
    border: 1px solid #f9c2c2;
    color: #c9302c;
}

.alert-success {
    background-color: #f4fdf4;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

@media (max-width: 480px) {
    .auth-page-wrap {
        padding: 20px 15px;
    }

    .auth-form-card {
        padding: 25px 20px;
    }

    .password-row {
        flex-direction: column;
        gap: 0;
    }

    .otp-input-group {
        gap: 6px !important;
    }

    .otp-digit {
        width: 42px !important;
        height: 50px !important;
        font-size: 22px !important;
    }
}

/* Google Sign-In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

.btn-google svg {
    flex-shrink: 0;
}

/* OTP Input Group */
.otp-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 25px 0 15px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #96281b;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fbfbfb;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Courier New', monospace;
}

.otp-digit:focus {
    border-color: #96281b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(150, 40, 27, 0.15);
}

.otp-dash {
    font-size: 24px;
    color: #ccc;
    font-weight: 300;
    user-select: none;
}

.otp-timer {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin: 10px 0 20px;
}

.otp-timer span {
    font-weight: 600;
    color: #96281b;
}

.resend-text {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin: 0;
}

.resend-btn {
    background: none;
    border: none;
    color: #96281b;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

.resend-btn:hover {
    color: #7a1f15;
}

.resend-btn:disabled {
    color: #aaa;
    cursor: not-allowed;
    text-decoration: none;
}

.icon-header {
    text-align: center;
    margin-bottom: 15px;
}

.icon-header i {
    font-size: 40px;
    color: #96281b;
    opacity: 0.8;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.back-link a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #96281b;
}

/* --- Static Pages (About, Terms, Legal, Contact, etc.) --- */
.static-page {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    margin-bottom: 50px;
    font-family: 'Open Sans', sans-serif;
}

.static-page h1 {
    color: #96281b;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.static-page h2 {
    color: #96281b;
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.static-page h3 {
    color: #444;
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.static-page .page-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.static-page p {
    line-height: 1.7;
    color: #444;
    font-size: 15px;
    margin-bottom: 15px;
}

.static-page ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.static-page ul li {
    line-height: 1.7;
    color: #444;
    font-size: 15px;
    margin-bottom: 8px;
}

.static-page a {
    color: #96281b;
    text-decoration: none;
    font-weight: 600;
}

.static-page a:hover {
    text-decoration: underline;
}

.section-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* Static Page Cards Grid (About Us) */
.sp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.sp-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #f5cfcc;
}

.sp-card i {
    font-size: 32px;
    color: #96281b;
    margin-bottom: 15px;
}

.sp-card h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sp-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* Contact Grid */
.sp-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sp-contact-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.sp-contact-card i {
    font-size: 36px;
    color: #96281b;
    margin-bottom: 15px;
}

.sp-contact-card h4 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.sp-contact-card a {
    color: #96281b;
    font-weight: 600;
    text-decoration: none;
}

.sp-contact-card a:hover {
    text-decoration: underline;
}

.sp-contact-desc {
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Timeline (Releases) */
.sp-timeline {
    position: relative;
    max-width: 800px;
    margin: 30px 0;
    padding-left: 20px;
}

.sp-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 0;
    width: 3px;
    background: #f0f0f0;
    border-radius: 2px;
}

.sp-timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 35px;
}

.sp-timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 3px;
    width: 15px;
    height: 15px;
    background: #96281b;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(150, 40, 27, 0.2);
    z-index: 1;
}

.sp-timeline-date {
    display: inline-block;
    background: #fdf2f2;
    color: #96281b;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    border: 1px solid #fadcdc;
}

.sp-timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.sp-timeline-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .static-page {
        padding: 20px 15px;
        margin-top: 15px;
    }

    .static-page h1 {
        font-size: 26px;
    }

    .sp-form {
        padding: 20px 15px;
    }
}

/* --- Static Pages (About, Terms, Legal, Contact, etc.) --- */
.static-page {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    margin-bottom: 50px;
    font-family: 'Open Sans', sans-serif;
}

.static-page h1 {
    color: #96281b;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.static-page h2 {
    color: #96281b;
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.static-page h3 {
    color: #444;
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.static-page .page-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.static-page p {
    line-height: 1.7;
    color: #444;
    font-size: 15px;
    margin-bottom: 15px;
}

.static-page ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.static-page ul li {
    line-height: 1.7;
    color: #444;
    font-size: 15px;
    margin-bottom: 8px;
}

.static-page a {
    color: #96281b;
    text-decoration: none;
    font-weight: 600;
}

.static-page a:hover {
    text-decoration: underline;
}

.section-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* Static Page Cards Grid (About Us) */
.sp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.sp-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #f5cfcc;
}

.sp-card i {
    font-size: 32px;
    color: #96281b;
    margin-bottom: 15px;
}

.sp-card h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sp-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .static-page {
        padding: 20px 15px;
        margin-top: 15px;
    }

    .static-page h1 {
        font-size: 26px;
    }
}

/* Dashboard Global Styles */
.dashboard-wrap {
    padding: 30px 0 60px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    font-family: 'Open Sans', sans-serif;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.dash-header h1 {
    font-size: 24px;
    margin: 0;
    color: #333;
    font-weight: 700;
}

.user-badge {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.user-badge i {
    color: #94003c;
    margin-right: 5px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-coins::before {
    background: #3b82f6;
}

.stat-value-card::before {
    background: #10b981;
}

.stat-exchange::before {
    background: #f59e0b;
}

.stat-completion::before {
    background: #8b5cf6;
}

.stat-icon {
    position: absolute;
    right: 15px;
    top: 20px;
    font-size: 24px;
    opacity: 0.15;
}

.stat-coins .stat-icon {
    color: #3b82f6;
}

.stat-value-card .stat-icon {
    color: #10b981;
}

.stat-exchange .stat-icon {
    color: #f59e0b;
}

.stat-completion .stat-icon {
    color: #8b5cf6;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.qa-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-btn i {
    color: #94003c;
}

.qa-btn:hover {
    background: #94003c;
    color: #fff;
    border-color: #94003c;
}

.qa-btn:hover i {
    color: #fff;
}

/* Dash Sections */
.dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media(max-width: 768px) {
    .dash-two-col {
        grid-template-columns: 1fr;
    }
}

.dash-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.dash-section h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.dash-section h3 i {
    color: #94003c;
    font-size: 14px;
}

/* Type Bars */
.type-row {
    display: grid;
    grid-template-columns: 120px 1fr 70px;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.type-label {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.type-bar-bg {
    background: #f0f0f0;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.type-bar-fill {
    height: 100%;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding-left: 10px;
    transition: width 1s ease-out;
}

.bar-bi {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bar-id {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.bar-ic {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.bar-bpns {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.bar-pi {
    background: linear-gradient(90deg, #ec4899, #f472b6);
}

.type-count {
    font-size: 13px;
    color: #444;
    font-weight: 700;
    text-align: right;
}

/* Grade Chips */
.grade-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grade-chip {
    background: #f8f9fa;
    border: 1px solid #ebedf0;
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.grade-name {
    font-size: 11px;
    color: #888;
    font-weight: 700;
    margin-bottom: 2px;
}

.grade-count {
    font-size: 15px;
    color: #222;
    font-weight: 800;
}

/* Metal Grid */
.metal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.metal-card {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.metal-name {
    font-size: 11px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.metal-val {
    font-size: 16px;
    color: #94003c;
    font-weight: 800;
}

.metal-unit {
    font-size: 10px;
    color: #999;
}

/* Recent List */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ri-grade {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    width: 45px;
    text-align: center;
}

.ri-title {
    flex: 1;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ri-date {
    font-size: 11px;
    color: #999;
}

.loading-spinner {
    text-align: center;
    padding: 30px;
    color: #ccc;
    font-size: 24px;
}

/* Collection Wrap */
.collection-wrap {
    padding: 30px 0 60px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    font-family: 'Open Sans', sans-serif;
}

.coll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.coll-header h1 {
    font-size: 24px;
    margin: 0;
    color: #333;
    font-weight: 700;
}

.btn-add-coin {
    background: #94003c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add-coin:hover {
    background: #7a0031;
}

.coll-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.coll-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
}

.coll-tab:hover {
    background: #f0f0f0;
}

.coll-tab.active {
    background: #94003c;
    color: white;
}

.coll-tab .badge {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
}

.coll-tab.active .badge {
    background: rgba(255, 255, 255, 0.2);
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-input-wrap input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.search-input-wrap input:focus {
    border-color: #94003c;
}

.filter-bar select {
    padding: 10px 30px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.coin-list-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.coin-list-header {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 160px 90px 115px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coin-list-item {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 160px 90px 115px;
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
    transition: background 0.2s;
}

.coin-list-item:hover {
    background: #fafafa;
}

.cli-img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cli-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cli-img .no-img {
    color: #aaa;
    font-size: 18px;
}

.cli-title {
    font-weight: 700;
    color: #222;
    font-size: 14px;
    margin-bottom: 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.cli-subtitle {
    font-size: 12px;
    color: #777;
}

.cli-grades {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badge-grade {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    background: #eee;
    color: #555;
    border: 1px solid #ddd;
}

.badge-grade.cir {
    background: #fff5f5;
    color: #c53030;
    border-color: #feb2b2;
}

.badge-grade.fine {
    background: #ebf8ff;
    color: #2b6cb0;
    border-color: #90cdf4;
}

.badge-grade.unc {
    background: #f0fff4;
    color: #2f855a;
    border-color: #9ae6b4;
}

.badge-grade.gunc {
    background: #faf5ff;
    color: #6b46c1;
    border-color: #d6bcfa;
}

.cli-price {
    font-weight: 700;
    color: #10b981;
    font-size: 15px;
}

.cli-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.cli-actions button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.cli-actions button:hover {
    background: #f0f0f0;
}

.cli-actions .btn-del {
    color: #dc2626;
}

.cli-actions .btn-del:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #888;
}

.empty-state i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 15px;
}

.list-count {
    padding: 10px 20px;
    font-size: 12px;
    color: #888;
    background: #f8f9fa;
    text-align: right;
    font-weight: 600;
}

/* Settings, Auth Wraps */
.profile-wrap,
.settings-wrap {
    padding: 30px 0 60px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    font-family: 'Open Sans', sans-serif;
}

/* ---------- User Settings CSS ---------- */
.settings-header {
    margin-bottom: 25px;
}

.settings-header h1 {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 700;
}

.settings-header p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

@media(max-width: 991px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Photo Card */
.photo-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    align-self: flex-start;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-circle {
    width: 100%;
    height: 100%;
    background: #94003c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: 0.3s;
}

.avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.user-id {
    font-size: 13px;
    color: #94003c;
    background: #fff0f5;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.meta-info {
    font-size: 12px;
    color: #888;
    text-align: left;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.meta-info div {
    margin-bottom: 5px;
}

.meta-info i {
    width: 16px;
    margin-right: 5px;
}

.photo-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-sm-action {
    background: #f0f0f0;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: 0.2s;
}

.btn-sm-action:hover {
    background: #e4e4e4;
}

.btn-sm-action.btn-danger {
    color: #dc2626;
    background: #fee2e2;
}

.btn-sm-action.btn-danger:hover {
    background: #fca5a5;
}


/* Settings Cards */
.settings-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.settings-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card h3 i {
    color: #94003c;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row.three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media(max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row.three-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.field-group {
    margin-bottom: 20px;
    flex: 1;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.input-wrap {
    position: relative;
    width: 100%;
}

.input-wrap i.icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-wrap i.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
}

.input-wrap input,
.field-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
    background: #fafafa;
}

.field-group textarea {
    padding-left: 15px;
    min-height: 80px;
    resize: vertical;
}

.input-wrap input:focus,
.field-group textarea:focus {
    border-color: #94003c;
    background: #fff;
    outline: none;
}

.btn-save {
    background: #94003c;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

.btn-save:hover {
    background: #820035;
}

/* ToastMsg */
.toast-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toast-msg.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-msg.success {
    background: #10b981;
}

.toast-msg.error {
    background: #ef4444;
}


/* ---------- Collector Profile CSS ---------- */
.profile-banner {
    background: linear-gradient(135deg, #94003c, #590024);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(148, 0, 60, 0.2);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-banner h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #FFFFFF;
}

.profile-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.profile-stat {
    text-align: center;
}

.ps-val {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.ps-label {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.profile-actions a {
    text-decoration: none;
}

.btn-whatsapp,
.btn-fb,
.btn-share {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-fb {
    background: #1877F2;
}

.btn-fb:hover {
    background: #0c5dc5;
}

.btn-share {
    background: rgba(255, 255, 255, 0.2);
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.3);
}


.pf-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.pf-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-section h3 i {
    color: #94003c;
}

.type-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.type-card {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.tc-count {
    font-size: 24px;
    font-weight: 800;
    color: #94003c;
    margin-bottom: 5px;
}

.tc-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* Exchange List on Profile */
.exchange-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exch-item {
    background: #fafafa;
    border: 1px solid #eaeaea;
    padding: 15px;
    border-radius: 8px;
    transition: 0.2s;
}

.exch-item:hover {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ei-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.ei-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
    align-items: center;
}

.ei-grades {
    background: #94003c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.ei-type {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
    color: #444;
}

.ei-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ei-comment {
    font-size: 12px;
    color: #777;
    font-style: italic;
    background: #f1f1f1;
    padding: 8px 12px;
    border-left: 3px solid #ccc;
    border-radius: 4px;
}

.empty-msg {
    text-align: center;
    color: #888;
    padding: 30px;
    font-size: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* ---------- Settings Confirm Modal ---------- */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.confirm-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.confirm-box {
    background: #fff;
    width: 90%;
    max-width: 350px;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: 0.3s;
}

.confirm-overlay.show .confirm-box {
    transform: translateY(0);
}

.confirm-icon {
    font-size: 40px;
    color: #dc2626;
    margin-bottom: 15px;
}

.confirm-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.confirm-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.confirm-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-cancel {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    flex: 1;
    transition: 0.2s;
}

.btn-cancel:hover {
    background: #e4e4e4;
}

.btn-confirm-yes {
    background: #dc2626;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    flex: 1;
    transition: 0.2s;
}

.btn-confirm-yes:hover {
    background: #b91c1c;
}

/* Exhibition Grid Page Styles */
.exhibition-toggles {
    margin-bottom: 2rem;
}

.btn-exhibition {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 20px;
    font-weight: 600;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-exhibition:hover {
    background-color: #e9ecef;
}

.btn-exhibition.active {
    background-color: #721817;
    color: #fff;
    border-color: #721817;
}

.exhibition-grid-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.exhibition-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.exhibition-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exhibition-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.exhibition-grid-card:hover .exhibition-grid-img {
    transform: scale(1.05);
}

.exhibition-grid-details {
    display: flex;
    flex-direction: column;
}

.exhibition-title {
    color: #721817;
    font-weight: 700;
    font-size: 1.2rem;
}

.exhibition-date,
.exhibition-organizer,
.exhibition-venue {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.exhibition-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Exhibition Image Modal Popup Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.image-modal-content {
    display: block;
    width: 80%;
    max-width: 800px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

#modalCaption {
    margin-top: 15px;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.image-close {
    position: absolute;
    top: -15px;
    right: -15px;
    color: #fff;
    background: #e74c3c;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.image-close:hover,
.image-close:focus {
    background: #c0392b;
    text-decoration: none;
    cursor: pointer;
}