/* ==========================================================================
   PROFILER PIRATE PORTAL & NAUTICAL TREASURE MAP DESIGN SYSTEM
   Theme: Authentic Aged Cartography, Parchment Scrolls, Brass & Pirate Gold
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=Cinzel:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    /* Pirate Gold & Precious Metals */
    --pirate-gold: #e5b842;
    --pirate-gold-bright: #ffcf40;
    --pirate-gold-dark: #b8860b;
    --pirate-brass: #c59b27;
    --pirate-bronze: #cd7f32;
    
    /* Parchment Paper Colors */
    --pirate-parchment: #f5eedc;
    --pirate-parchment-card: #f1e6cf;
    --pirate-parchment-dark: #e0d0b0;
    --pirate-ink: #2b1a0a;
    --pirate-ink-muted: #5c3e1e;

    /* Ship Hull & Dark Wood */
    --pirate-wood-dark: #1a1006;
    --pirate-wood-plank: #25160b;
    --pirate-wood-light: #3a2412;
    --pirate-sea-blue: #112838;

    /* Borders & Accents */
    --border-brass: rgba(229, 184, 66, 0.55);
    --border-brass-solid: #d4af37;
    --border-parchment: #8e683b;

    /* Radii */
    --radius-sm: 5px;
    --radius-md: 9px;
    --radius-lg: 14px;
    --radius-pill: 9999px;

    /* Shadows & Glows */
    --shadow-wood: 0 10px 30px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
    --shadow-parchment: 0 10px 25px rgba(24, 14, 6, 0.45), inset 0 0 35px rgba(110, 75, 35, 0.25);
    --shadow-gold-glow: 0 0 20px rgba(229, 184, 66, 0.55);
    --shadow-portal-aura: 0 0 40px rgba(229, 184, 66, 0.45), 0 0 80px rgba(80, 160, 255, 0.25);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Global Treasure Map Wallpaper
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #f3ebd9;
    /* Rich Antique Treasure Map Background */
    background-color: #1a1006;
    background-image: 
        radial-gradient(ellipse at center, rgba(20, 13, 7, 0.48) 0%, rgba(14, 8, 4, 0.84) 100%),
        url('../img/pirate_treasure_map.jpg');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

/* Vignette border over entire screen */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.85);
    pointer-events: none;
    z-index: 999;
}

/* Nautical Headings */
h1, h2, h3, .pirate-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.8px;
    color: var(--pirate-gold);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.pirate-banner-heading {
    font-family: 'Pirata One', cursive;
    font-size: 3.2rem;
    color: var(--pirate-gold);
    letter-spacing: 2px;
    text-shadow: 2px 3px 0 #120a04, 0 0 25px rgba(229, 184, 66, 0.6);
    line-height: 1.1;
}

/* Links */
a {
    color: var(--pirate-gold);
    text-decoration: none;
    transition: all 0.25s ease;
}
a:hover {
    color: var(--pirate-gold-bright);
    text-shadow: 0 0 10px rgba(229, 184, 66, 0.7);
}

/* ==========================================================================
   Deck Navigation
   ========================================================================== */
.gds-nav {
    background: linear-gradient(180deg, rgba(38, 22, 11, 0.98) 0%, rgba(22, 12, 5, 0.96) 100%) !important;
    border-bottom: 2.5px solid var(--border-brass-solid);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), inset 0 -1px 0 rgba(229, 184, 66, 0.35);
    padding: 0.75rem 1.75rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.gds-nav .navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pirate-gold) !important;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    letter-spacing: 1px;
}

.gds-nav .brand-crest {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--pirate-gold);
    box-shadow: 0 0 14px rgba(229, 184, 66, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1006;
    animation: pulseCrest 4s ease-in-out infinite;
}

@keyframes pulseCrest {
    0%, 100% { box-shadow: 0 0 14px rgba(229, 184, 66, 0.5); }
    50% { box-shadow: 0 0 25px rgba(229, 184, 66, 0.85); }
}

.gds-nav .nav-link {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #d6c6b2 !important;
    padding: 0.55rem 1.05rem !important;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.gds-nav .nav-link:hover {
    color: var(--pirate-gold) !important;
    background: rgba(229, 184, 66, 0.15);
    border-color: rgba(229, 184, 66, 0.4);
    transform: translateY(-1px);
}

.gds-nav .nav-link.active-page {
    color: var(--pirate-gold-bright) !important;
    background: linear-gradient(180deg, rgba(229, 184, 66, 0.25) 0%, rgba(229, 184, 66, 0.08) 100%);
    border: 1.5px solid var(--pirate-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 14px rgba(229, 184, 66, 0.35);
}

/* ==========================================================================
   Container & Cards
   ========================================================================== */
.gds-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    position: relative;
    z-index: 10;
}

/* Weathered Dark Wood Card */
.pirate-card-wood {
    background: linear-gradient(180deg, rgba(42, 26, 13, 0.94) 0%, rgba(26, 16, 7, 0.96) 100%);
    border: 2px solid var(--border-brass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-wood), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.pirate-card-wood::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--pirate-gold), transparent);
}

.pirate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--border-brass);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Course Navigation Tabs (Nautical Brass Plaques)
   ========================================================================== */
.course-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 2.25rem;
}

.course-tab-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, rgba(46, 28, 14, 0.9) 0%, rgba(28, 16, 8, 0.92) 100%);
    color: #e0d0ba !important;
    border: 1.5px solid var(--border-brass);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.course-tab-btn:hover {
    color: var(--pirate-gold-bright) !important;
    border-color: var(--pirate-gold-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-glow);
}

.course-tab-btn.active {
    background: linear-gradient(180deg, #ffdf70 0%, #e5b842 50%, #b8860b 100%);
    color: #1a0f05 !important;
    border-color: #fff2a3;
    box-shadow: 0 0 18px rgba(229, 184, 66, 0.7);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Student Cards (Authentic Pirate Bounty Scroll / Wanted Poster Style)
   ========================================================================== */
.roster-card {
    background-color: var(--pirate-parchment);
    background-image: url('../img/aged_parchment.jpg');
    background-size: cover;
    background-position: center;
    border: 3px double #785328;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-parchment), 0 8px 25px rgba(0, 0, 0, 0.7);
    color: var(--pirate-ink);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.roster-card::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px dashed rgba(120, 83, 40, 0.4);
    pointer-events: none;
    border-radius: calc(var(--radius-md) - 3px);
}

.roster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(229, 184, 66, 0.5);
    border-color: var(--pirate-gold);
}

.roster-card-inner {
    padding: 1.35rem;
    display: flex;
    gap: 1.15rem;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.roster-photo-wrap {
    width: 95px;
    height: 115px;
    border: 3px solid #8e683b;
    border-radius: var(--radius-sm);
    background: #181109;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.roster-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.roster-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #3e2817, #181109);
    color: var(--pirate-gold);
    font-size: 2.4rem;
}

.roster-info {
    flex: 1;
    min-width: 0;
}

.roster-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #3b220d;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.roster-meta-item {
    font-size: 0.84rem;
    color: #5c3e1e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.roster-card-foot {
    padding: 0.75rem 1.25rem;
    background: rgba(85, 52, 22, 0.18);
    border-top: 1px dashed rgba(120, 83, 40, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Captain's Dossier View (Royal Chart / Wanted Decree)
   ========================================================================== */
.dossier-wrap {
    max-width: 900px;
    margin: 1.5rem auto 3rem auto;
}

.dossier-card {
    background-color: var(--pirate-parchment);
    background-image: 
        radial-gradient(ellipse at center, rgba(245, 238, 220, 0.75) 0%, rgba(220, 200, 165, 0.88) 100%),
        url('../img/pirate_treasure_map.jpg');
    background-size: cover;
    background-position: center;
    border: 5px double #6c4720;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-parchment), 0 0 45px rgba(0, 0, 0, 0.9);
    padding: 2.75rem;
    position: relative;
    color: var(--pirate-ink);
}

.dossier-card::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 2px dashed rgba(108, 71, 32, 0.5);
    pointer-events: none;
    border-radius: calc(var(--radius-lg) - 4px);
}

.dossier-seal-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #d93838, #7a1515);
    border: 3px solid #4a0d0d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    z-index: 10;
}

.dossier-photo-frame {
    width: 175px;
    height: 215px;
    border: 5px solid #8e683b;
    border-radius: var(--radius-sm);
    background: #181109;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.dossier-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dossier-heading {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 800;
    color: #3b220d;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dossier-subheading {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7b5229;
    font-weight: 700;
}

.dossier-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #4a2b10;
    border-bottom: 2px solid #a88458;
    padding-bottom: 0.45rem;
    margin-top: 1.75rem;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dossier-field-box {
    background: rgba(255, 255, 255, 0.65);
    border: 1.5px solid rgba(142, 104, 59, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dossier-field-label {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6e4218;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.25rem;
}

.dossier-field-val {
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: #2b1a0a;
}

/* ==========================================================================
   Buttons (Doubloon & Leather)
   ========================================================================== */
.pirate-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.pirate-btn-gold {
    background: linear-gradient(180deg, #ffdf70 0%, #e5b842 50%, #b8860b 100%);
    color: #1a0f05 !important;
    border: 1px solid #fff0a0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 184, 66, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pirate-btn-gold:hover {
    background: linear-gradient(180deg, #ffe78a 0%, #f3c642 50%, #c59b27 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 184, 66, 0.75);
}

.pirate-btn-leather {
    background: linear-gradient(180deg, #422915 0%, #29180b 100%);
    color: var(--pirate-gold) !important;
    border: 1.5px solid var(--border-brass);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.pirate-btn-leather:hover {
    background: linear-gradient(180deg, #53351d 0%, #352010 100%);
    border-color: var(--pirate-gold-bright);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-glow);
}

.pirate-btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
}

/* ==========================================================================
   Inputs & Forms (Brass Spyglass Style)
   ========================================================================== */
.pirate-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pirate-gold);
    letter-spacing: 0.8px;
    margin-bottom: 0.45rem;
}

.pirate-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pirate-input-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--pirate-gold);
    font-size: 1.15rem;
    pointer-events: none;
}

.pirate-input {
    width: 100%;
    background: rgba(28, 17, 8, 0.9);
    border: 2px solid var(--border-brass);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    padding: 0.85rem 1.1rem 0.85rem 3rem;
    outline: none;
    transition: all 0.25s ease;
}

.pirate-input::placeholder {
    color: #9a8268;
}

.pirate-input:focus {
    border-color: var(--pirate-gold-bright);
    box-shadow: 0 0 16px rgba(229, 184, 66, 0.5);
    background: rgba(42, 26, 13, 0.98);
}

.pirate-select {
    width: 100%;
    background: rgba(28, 17, 8, 0.92);
    border: 2px solid var(--border-brass);
    border-radius: var(--radius-sm);
    color: #ffdf70;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
    outline: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.pirate-select:focus {
    border-color: var(--pirate-gold-bright);
    box-shadow: 0 0 14px rgba(229, 184, 66, 0.5);
}

.pirate-select option {
    background: #25160b;
    color: #f3ebd9;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.pirate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.6px;
}

.badge-gold-doubloon {
    background: linear-gradient(135deg, #ffdf70, #b8860b);
    color: #1a0f05;
    border: 1px solid #ffe999;
    box-shadow: 0 0 10px rgba(229, 184, 66, 0.5);
}

.badge-silver-piece {
    background: linear-gradient(135deg, #f1f5f9, #94a3b8);
    color: #0f172a;
    border: 1px solid #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.badge-seaworthy {
    background: rgba(46, 139, 87, 0.35);
    color: #7eedbe;
    border: 1.5px solid #34d399;
}

.badge-bronze-medallion {
    background: linear-gradient(135deg, #fba988, #8a4320);
    color: #fff;
    border: 1px solid #f8bba3;
}

.pirate-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #3e240f;
    background: rgba(220, 195, 155, 0.6);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(120, 83, 40, 0.35);
}

/* Luminous Mono Text for Dark Surfaces */
.pirate-card-wood .pirate-mono,
.dup-group-card .pirate-mono,
.roster-card-foot .pirate-mono,
.dup-table .pirate-mono {
    color: #ffda6a;
    background: rgba(30, 18, 9, 0.9);
    border-color: rgba(229, 184, 66, 0.35);
}

/* ==========================================================================
   Pagination Controls
   ========================================================================== */
.pirate-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 2.5rem 0 1rem 0;
    padding: 0;
    list-style: none;
}

.pirate-pagination .page-item {
    margin: 0;
}

.pirate-pagination .page-link {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    background: rgba(28, 17, 8, 0.88);
    border: 1.5px solid var(--border-brass);
    color: #d6c6b2;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pirate-pagination .page-link:hover {
    background: rgba(229, 184, 66, 0.25);
    border-color: var(--pirate-gold);
    color: var(--pirate-gold-bright);
    box-shadow: var(--shadow-gold-glow);
}

.pirate-pagination .page-item.active .page-link {
    background: linear-gradient(180deg, #ffdf70 0%, #e5b842 50%, #b8860b 100%);
    border-color: #fff2a3;
    color: #1a0f05;
    box-shadow: 0 0 14px rgba(229, 184, 66, 0.6);
}

/* Footer */
.pirate-footer {
    background: linear-gradient(180deg, rgba(28, 17, 8, 0.95) 0%, #120a04 100%);
    border-top: 2.5px solid var(--border-brass-solid);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}


/* ==========================================================================
   PRINT STYLESHEET — ONLY PIRATE PROFILE PARCHMENT PRINTS
   ========================================================================== */
@media print {
    /* Hide everything that is NOT the parchment dossier */
    nav,
    .gds-nav,
    .navbar,
    .pirate-footer,
    footer,
    .pirate-btn,
    .action-bar-print-hide,
    .course-tabs,
    .pirate-card-wood,
    .d-flex.justify-content-between.align-items-center.mb-4,
    #rosterPagination,
    .navbar-toggler,
    .dropdown-menu {
        display: none !important;
    }

    /* Reset page canvas to clean white paper */
    html, body {
        background: #ffffff !important;
        background-image: none !important;
        color: #1a1006 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11pt !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .gds-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .dossier-wrap {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: none !important;
    }

    /* Authentic crisp parchment card on paper */
    .dossier-card {
        background: #fffdf5 !important;
        border: 2px solid #8c6738 !important;
        box-shadow: none !important;
        padding: 1.5rem !important;
        margin: 0 !important;
        page-break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border-radius: 4px !important;
    }

    .dossier-card::before,
    .dossier-card::after {
        display: none !important;
    }

    .dossier-seal-badge {
        box-shadow: none !important;
        border: 2px solid #8c6738 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .dossier-photo-frame {
        border: 2px solid #8c6738 !important;
        box-shadow: none !important;
    }

    .dossier-photo {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .dossier-field-box {
        background: #fdfaf3 !important;
        border: 1px solid #d4b886 !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        page-break-inside: avoid !important;
    }

    .dossier-heading {
        color: #2b1704 !important;
        font-size: 1.6rem !important;
    }

    .dossier-section-title {
        color: #633a10 !important;
        border-bottom: 2px solid #8c6738 !important;
    }

    .pirate-badge {
        border: 1px solid #8c6738 !important;
        color: #2b1704 !important;
        background: #f6ebd7 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}


/* ==========================================================================
   AUTHENTIC PIRATE PORTAL DROPDOWN MENUS & INTERACTIVE HOVER STYLING
   ========================================================================== */
.dropdown-menu {
    background: linear-gradient(160deg, #241407 0%, #150b03 100%) !important;
    border: 1.5px solid var(--border-brass) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 0, 0, 0.6) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.5rem 0 !important;
    min-width: 240px !important;
    backdrop-filter: blur(8px) !important;
}

.dropdown-header {
    font-family: 'Cinzel', serif !important;
    font-size: 0.76rem !important;
    letter-spacing: 1.5px !important;
    color: var(--pirate-gold) !important;
    padding: 0.5rem 1.25rem 0.35rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    opacity: 0.95 !important;
}

.dropdown-divider {
    border-color: rgba(229, 184, 66, 0.25) !important;
    margin: 0.45rem 0 !important;
}

.dropdown-item {
    color: #e0d0b8 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    padding: 0.65rem 1.25rem !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    background: transparent !important;
    text-decoration: none !important;
    position: relative !important;
}

/* User Request: On hover, text must NOT be white — Glowing Pirate Gold & Warm Velvet */
.dropdown-item:hover,
.dropdown-item:focus {
    color: #ffd700 !important; /* Radiant pirate gold */
    background: linear-gradient(90deg, rgba(229, 184, 66, 0.22) 0%, rgba(229, 184, 66, 0.05) 100%) !important;
    padding-left: 1.55rem !important; /* Smooth nautical drawer slide */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4) !important;
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: #ffcf40 !important;
    transform: scale(1.18);
    transition: transform 0.2s ease;
}

.dropdown-item.dropdown-item-danger {
    color: #fca5a5 !important;
}

.dropdown-item.dropdown-item-danger:hover {
    color: #fecaca !important;
    background: rgba(220, 38, 38, 0.18) !important;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.5) !important;
}

/* User Profile Badge Dropdown Button */
.user-badge-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.user-badge-btn:focus {
    outline: none;
}

.user-badge-btn::after {
    margin-left: 0.45rem;
    vertical-align: middle;
    color: var(--pirate-gold);
}


/* ==============================================================================
   Pirate Portal — High Seas Admiralty Preloader & Image Shimmer Loader
   ============================================================================== */
.pirate-preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(32, 19, 10, 0.98), rgba(12, 7, 4, 0.99));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
    pointer-events: all;
}

.pirate-preloader-overlay.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pirate-preloader-box {
    text-align: center;
    max-width: 440px;
    width: 90%;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, rgba(38, 22, 11, 0.92), rgba(20, 12, 6, 0.98));
    border: 2px solid var(--border-brass, #b8860b);
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 35px rgba(229, 184, 66, 0.25), inset 0 0 25px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: preloaderPulse 2.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(229, 184, 66, 0.15); }
    50% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 45px rgba(229, 184, 66, 0.35); }
}

.pirate-preloader-spinner-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pirate-preloader-ring-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px dashed var(--pirate-gold, #e5b842);
    animation: spinClockwise 9s linear infinite;
    box-shadow: 0 0 18px rgba(229, 184, 66, 0.35);
}

.pirate-preloader-ring-inner {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ffd700;
    border-bottom-color: #ff9900;
    animation: spinCounterClockwise 2.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.pirate-preloader-crest {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--border-brass, #b8860b);
    background: #190f07;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.85);
    z-index: 2;
}

.pirate-preloader-crest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes spinClockwise {
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    100% { transform: rotate(-360deg); }
}

.pirate-preloader-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--pirate-gold, #e5b842);
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 12px rgba(229,184,66,0.3);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.pirate-preloader-subtext {
    font-size: 0.85rem;
    color: #cfbc9f;
    margin-bottom: 1.4rem;
    letter-spacing: 0.3px;
}

.pirate-preloader-track {
    width: 100%;
    height: 6px;
    background: rgba(18, 11, 6, 0.9);
    border: 1px solid var(--border-brass, #855f36);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.pirate-preloader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, transparent, #e5b842, #ffe58f, #e5b842, transparent);
    border-radius: 999px;
    animation: preloaderShimmerBar 1.6s ease-in-out infinite;
}

@keyframes preloaderShimmerBar {
    0% { left: -45%; width: 30%; }
    50% { width: 55%; }
    100% { left: 100%; width: 30%; }
}

/* Individual Card Photo Skeleton Shimmer */
.roster-photo-wrap, .crew-thumb, .dossier-portrait-frame {
    position: relative;
    overflow: hidden;
    background: #25160c !important;
}

.roster-photo-wrap::before, .crew-thumb::before, .dossier-portrait-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 184, 66, 0.18), transparent);
    animation: photoShimmerAnim 1.6s infinite;
    z-index: 1;
    pointer-events: none;
}

.roster-photo-wrap.photo-loaded::before, .crew-thumb.photo-loaded::before, .dossier-portrait-frame.photo-loaded::before {
    display: none !important;
}

@keyframes photoShimmerAnim {
    0% { left: -100%; }
    100% { left: 100%; }
}

.roster-photo {
    transition: opacity 0.35s ease-in-out, transform 0.35s ease;
    opacity: 0.15;
}

.roster-photo.loaded {
    opacity: 1 !important;
}
