.dms-likes-box {
    margin-top: 20px;
    margin-left: 20px;
    padding: 10px 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Count at the top */
.dms-likes-count {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

/* Bullet list of usernames */
.dms-likes-list {
    list-style-type: disc;
    margin-left: 20px;
    color: #FFED90;
    padding-left: 0;
}

/* Each user line */
.dms-likes-user {
    font-size: 12px;
    font-weight: 300;
    color: #fff;
}

/* Link style */
.dms-likes-user-link {
    color: #fff;
    text-decoration: none;
}

.dms-likes-user-link:hover {
    text-decoration: underline;
}



/*
 * ========================================
 * DMS - Action Button Styles (V4)
 *
 * - Active "Like" icon is RED
 * - Active "Bookmark" icon is YELLOW
 * - Active "Follow" icon is YELLOW (NEW!)
 * - Active border is YELLOW
 * ========================================
 */

/* --- 1. Base Button Style --- */
.dms-action-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important; /* Space between icon and text */

  background-color: #222 !important; /* Dark background */
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1 !important;

  padding: 10px 18px !important;
  border-radius: 50px !important; /* This makes it a pill */
  
  border: 1px solid transparent !important; 
  
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
}

/* --- 2. Hover State --- */
.dms-action-button:hover {
  background-color: #333 !important;
  color: #fff !important; 
}

/* --- 3. Inactive Icon Colors --- */
/* Set ALL INACTIVE icons to a neutral grey */
.dms-action-button .fa-regular {
  color: #aaa !important;
}

/* --- 4. Like Button (Active) --- */
.dms-action-button.action-like.is-active {
  border-color: #ffe066 !important; /* Yellow border */
}
.dms-action-button.action-like.is-active .fa-solid {
  color: #F91880 !important; /* A bright, punchy pink/red */
}


/* --- 5. Bookmark Button (Active) --- */
.dms-action-button.action-bookmark.is-active {
  border-color: #ffe066 !important; /* Yellow border */
}
.dms-action-button.action-bookmark.is-active .fa-solid {
  color: #ffe066 !important; /* The yellow icon color */
}

/* --- 6. Follow Button (Active) --- NEW! --- */
.dms-action-button.action-follow.is-active {
  border-color: #ffe066 !important; /* Yellow border */
}
.dms-action-button.action-follow.is-active .fa-solid {
  color: #ffe066 !important; /* The yellow icon color */
}

/*
 * ========================================
 * V5.1 - Gallery Feed Specific Styles
 * ========================================
 */

/*
 * Reset the pill-shape for feed buttons
 * (We use .action-like[class*="dms-feed-"] to be specific)
 */
.dms-action-button.action-like[class*="dms-feed-"],
.dms-action-button.action-bookmark[class*="dms-feed-"] {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  /* Make it blend in with the other feed actions */
  font-size: 1.1rem !important;
  gap: 5px !important; 
}

/*
 * Style the new count span
 */
.dms-action-button .dms-action-count {
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
}

/*
 * Re-apply the icon colors, since we overrode them
 */
.dms-action-button.action-like[class*="dms-feed-"].is-active .fa-solid {
  color: #F91880 !important;
}
.dms-action-button.action-like[class*="dms-feed-"] .fa-regular {
  color: #aaa !important;
}

.dms-action-button.action-bookmark[class*="dms-feed-"].is-active .fa-solid {
  color: #ffe066 !important;
}
.dms-action-button.action-bookmark[class*="dms-feed-"] .fa-regular {
  color: #aaa !important;
}

/* --- V5 ICON FIX (FONT-FAMILY & FONT-WEIGHT) --- */
    /* This forces the correct font-family AND font-weight for icons,
       overriding all inherited styles from the button. */

    .dms_profile_v4_master_container .dms-action-button i.fa {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dms_profile_v4_master_container .dms-action-button i.fa-solid {
        font-family: "Font Awesome 6 Solid", "Font Awesome 5 Solid" !important;
        font-weight: 900 !important;
    }
    
    .dms_profile_v4_master_container .dms-action-button i.fa-regular {
        font-family: "Font Awesome 6 Regular", "Font Awesome 5 Regular" !important;
        font-weight: 400 !important;
    }

    /* This targets the 'user-plus' icon for the Follow button */
    .dms_profile_v4_master_container .dms-action-button.action-follow i.fa {
        font-family: "Font Awesome 6 Solid", "Font Awesome 5 Solid" !important;
        font-weight: 900 !important;
    }







.dms-favorite-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
}

.dms-favorite-photo img {
    width: 115px;
    height: 115px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .dms-favorite-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .dms-favorite-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.dms-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease-in-out;
}

.dms-like-btn:hover .dms-icon {
    transform: scale(1.2);
}

.dms-icon {
    font-size: 18px;
    transition: transform 0.2s ease, color 0.2s ease;
    color: white;
}

.dms-like-btn.liked .dms-icon {
    color: green;
}

.dms-like-count {
    font-size: 12px;
    font-weight: 300;
    color: inherit;
}

/* Container for each favorite type */
.dms-favorites-box {
    margin-bottom: 25px;
    padding: 15px;
    background-color: transparent;
}

/* Section heading */
.dms-favorites-heading {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: white;
    margin-bottom: 10px;
}

/* List of favorites */
.dms-favorites-list {
    list-style-type: disc;
    padding-left: 20px;
}

/* List items (each user or item liked) */
.dms-favorite-item {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
	line-height: 1.8;    
	color: #FFFF94; !important
    margin-bottom: 10px;
}

/* Links to profile/author/etc */
.dms-favorite-item a {
    color: #ffff94;
	text-decoration: none;
    transition: color 0.2s ease;
}

.dms-favorite-item a:hover {
    color: #D20000;
}

/*=================Better Messages Temporary Style Block ===========================*/
/* ==== Better Messages: teaser bubble then expand on hover ==== */

/* Base: keep your existing wide grid styles (no display override) */
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content
.bm-messages-listing .bm-message .bm-message-content .bm-reactions-selector{
  position:absolute; bottom:-9px; right:-9px;
  min-width:280px; max-width:340px; padding:8px;
  background:#fff; border:none; border-radius:10px !important;
  box-shadow:0 6px 24px rgba(0,0,0,.18); z-index:9999;
  max-height:220px; overflow:auto;
}

/* When BM makes it visible, use rows (your earlier working bit) */
.bp-messages-wrap .bm-reactions-selector[style*="display:block"],
.bp-messages-wrap .bm-reactions-selector[style*="display: block"],
.bp-messages-wrap .bm-reactions-selector[style*="display:inline-block"],
.bp-messages-wrap .bm-reactions-selector[style*="display: inline-block"]{
  display:flex; flex-wrap:wrap; gap:8px; align-content:flex-start;
}

/* --- Teaser behavior --- */

/* 1) On message hover: show a tiny round teaser bubble (1 emoji only) */
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content
.bm-messages-listing .bm-message .bm-message-content:hover .bm-reactions-selector{
  /* ensure it actually shows even if BM had it hidden */
  display:block;                              /* only while hovering the message */
  width:32px; height:32px; padding:4px;       /* small bubble */
  min-width:auto; max-width:none;
  border-radius:999px !important;
  overflow:hidden;                             /* hide other emojis */
  box-shadow:0 6px 20px rgba(0,0,0,.18);
  transition:width .12s ease, height .12s ease, border-radius .12s ease, padding .12s ease;
}

/* Show ONLY the first emoji in teaser state */
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content
.bm-messages-listing .bm-message .bm-message-content:hover
.bm-reactions-selector .bm-reaction-icon{ display:none; }
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content
.bm-messages-listing .bm-message .bm-message-content:hover
.bm-reactions-selector .bm-reaction-icon:first-child{ display:flex; }

/* 2) When hovering the teaser bubble itself: expand to full grid */
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content
.bm-messages-listing .bm-message .bm-message-content .bm-reactions-selector:hover{
  /* expand */
  width:auto; height:auto; padding:8px;
  min-width:280px; max-width:340px;
  border-radius:10px !important;
  overflow:auto;
  /* switch back to rows */
  display:flex;
  flex-wrap:wrap; gap:8px;
}

/* Restore all icons when expanded */
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content
.bm-messages-listing .bm-message .bm-message-content .bm-reactions-selector:hover
.bm-reaction-icon{ display:inline-flex; }

/* Icon sizing stays tidy */
.bp-messages-wrap .bm-reactions-selector .bm-reaction-icon{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px; cursor:pointer; transition:transform .08s ease, background-color .12s ease;
}
.bp-messages-wrap .bm-reactions-selector .bm-reaction-icon:hover{ background:#f3f3f3; transform:translateY(-1px); }
.bp-messages-wrap .bm-reactions-selector .bm-reaction-icon img{ width:18px !important; height:18px !important; }

/* Optional: tweak for dark UIs
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content
.bm-messages-listing .bm-message .bm-message-content .bm-reactions-selector{ background:#181818; box-shadow:0 6px 24px rgba(0,0,0,.55); }
.bp-messages-wrap .bm-reactions-selector .bm-reaction-icon:hover{ background:#222; }
*/

/* Mobile tighten */
@media (max-width:600px){
  .bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content
  .bm-messages-listing .bm-message .bm-message-content .bm-reactions-selector:hover{
    min-width:220px; max-width:260px; gap:6px; padding:6px;
  }
  .bp-messages-wrap .bm-reactions-selector .bm-reaction-icon{ width:32px; height:32px; border-radius:6px; }
  .bp-messages-wrap .bm-reactions-selector .bm-reaction-icon img{ width:16px !important; height:16px !important; }
}


/*=================================================================================*/
/* Loading more spinner */

.dms-spinner { display: inline-block; width: 48px; height: 48px; margin-bottom: 8px; }
.dms-spinner svg { width: 100%; height: 100%; }
.dms-spinner circle { stroke: #333; }
.dms-spinner path { stroke: #5f0000; }
.dms-spinner-text { color: #fff; font-family: "Inter", sans-serif; font-size: 14px; margin-top: 8px; }




/* =========================================
   GEMINI MASTERPIECE FEED STYLES v3.0
   ========================================= */

.dms-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 30px; 
    padding: 20px 0;
    max-width: 750px;
    margin: 0 auto;
    min-height: 1200px;
}

/* --- Base Card --- */
.dms-activity-card {
    display: flex;
    position: relative;
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden; 
    margin-bottom: 25px; 
}

.dms-activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border-color: #333;
}

/* --- Color Coding (Refined Side Chips) --- */

/* Default / Neutral State */
.dms-card-default { 
    box-shadow: inset 3px 0 0 #333; 
}

/* Me (The "Beast" Style) */
.dms-card-me { 
    box-shadow: inset 3px 0 0 rgba(225, 240, 74, 0.1); 
}
.dms-card-me::before {
    content:''; 
    position:absolute; 
    left:0; top:0; bottom:0; 
    width:3px;
    background: #E1F04A;           /* Your Neon Lime */
    box-shadow: 2px 0 8px rgba(225, 240, 74, 0.4); /* Sharp, slick glow */
    z-index: 5;
}

/* Following (The Professional Grey) */
.dms-card-following { 
    box-shadow: inset 3px 0 0 rgba(204, 204, 204, 0.05); 
}
.dms-card-following::before {
    content:''; 
    position:absolute; 
    left:0; top:0; bottom:0; 
    width:3px;
    background: #b5b5b5;           /* Standard Light Grey */
    box-shadow: 2px 0 5px rgba(204, 204, 204, 0.2); /* Subtle edge highlight */
    z-index: 5;
}

/* --- Site News (Distinct Style) --- */
.dms-card-news {
    display: block;
    background: linear-gradient(135deg, #0d2c40 0%, #04141f 100%);
    border: 1px solid #1a4a6b;
    box-shadow: 0 0 15px rgba(4, 85, 132, 0.3);
}


/* =========================================
   HEADER BAR SYSTEM (NEW)
   ========================================= */


/* Left side: Icon + Label */
.dms-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

/* Right side: Time */
.dms-header-time {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.9em;
}

/* --- Color Variants --- */

/* Stories (Gold) */
.header-story {
    background: rgba(255, 211, 105, 0.1);
    color: #ffd369;
    border: 1px solid rgba(255, 211, 105, 0.2);
}

/* Photos (Blue) */
.header-photo {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

/* Comments (Green) */
.header-comment {
    background: rgba(76, 175, 80, 0.1);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Replies (Teal) */
.header-reply {
    background: rgba(38, 166, 154, 0.1);
    color: #80cbc4;
    border: 1px solid rgba(38, 166, 154, 0.2);
}

/* Likes (Red) */
.header-like {
    background: rgba(255, 69, 58, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 69, 58, 0.2);
}

/* Profile Updates (Purple) */
.header-profile {
    background: rgba(156, 39, 176, 0.1);
    color: #ba68c8;
    border: 1px solid rgba(156, 39, 176, 0.2);
}

/* Imports (Orange/Bronze) */
.header-import {
    background: rgba(255, 152, 0, 0.1);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.2);
}


/* =========================================
   LAYOUT & CONTENT
   ========================================= */

.dms-card-left {
    flex: 0 0 60px;
    margin-right: 15px;
}
.dms-card-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* --- Main Avatar --- */
.dms-avatar-frame img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    transition: border-color 0.2s;
}
/* Me (Neon Lime) */
.dms-card-me .dms-avatar-frame img { 
    border-color: #E1F04A; 
}

/* Following (Light Grey) */
.dms-card-following .dms-avatar-frame img { 
    border-color: #b5b5b5; 
}

/* --- Typography --- */
.dms-meta-row {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}
.dms-user a, .dms-target a {
    color: #ffd369; 
    font-weight: 700;
    text-decoration: none;
}
.dms-user a:hover { text-decoration: underline; }

.dms-card-title {
    margin: 4px 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}
.dms-card-title a { color: #fff; text-decoration: none; }
.dms-card-title a:hover { color: #ffd369; }

.dms-card-title-small {
    margin: 4px 0 8px 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.dms-card-title-small a { color: #eee; text-decoration: none; }

.dms-excerpt {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}

/* --- Disable Old Background Icons --- */
.dms-card-bg-icon { display: none; }




/* =========================================
   COMMENTS & PHOTOS
   ========================================= */

.dms-parent-context {
    background: #252525;
    border-left: 3px solid #555;
    padding: 6px 10px;
    margin: 8px 0;
    font-size: 0.85em;
    color: #d1d1d1;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}
.dms-comment-bubble {
    background: #eb150845;
    padding: 10px;
    border-radius: 8px;
    color: #ddd;
    font-size: 0.95em;
    position: relative;
}
.dms-comment-bubble::before {
    content:''; position:absolute; top:-6px; left:15px;
    width:0; height:0;
    border-left:6px solid transparent; 
    border-right:6px solid transparent;
    border-bottom:6px solid #2a2a2a;
}

/* --- New Photo (Larger Thumbnails) --- */
.dms-photo-grid {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.dms-photo-thumb img {
    width: 120px!important;         /* INCREASED SIZE */
    height: 120px!important;        /* SQUARE */
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #444;
}
.dms-photo-text {
    font-size: 0.95em;
    color: #ccc;
    flex: 1;
}
.dms-read-more {
    color: #ffd369;
    text-decoration: none;
    font-size: 0.9em;
}

/* --- Coiled Fist Import --- */
.dms-cf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dms-cf-content { flex: 1; }
.dms-cf-logo img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}
.dms-btn-gold {
    display: inline-block;
    background: transparent;
    border: 1px solid #ffd369;
    color: #ffd369;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}
.dms-btn-gold:hover {
    background: #ffd369;
    color: #000;
}


/* =========================================
   SITE NEWS STYLES (ANNOUNCEMENTS)
   ========================================= */

.dms-news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}
.dms-news-header i { color: #00d2ff; font-size: 1.2em; }
.dms-news-label {
    color: #00d2ff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.8em;
    text-transform: uppercase;
}
.dms-news-time { margin-left: auto; font-size: 0.8em; color: rgba(255,255,255,0.5); }

.dms-news-title {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    text-align: left;
}
.dms-news-title a { color: #fff; text-decoration: none; }
.dms-news-body { font-size: 1em; color: #d0e6f5; line-height: 1.6; }
.dms-news-footer {
    margin-top: 15px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.4);
    text-align: right;
}

/* --- Extras --- */
.dms-mini-thumb { margin-top: 8px; }
.dms-mini-thumb img { 
    height: 120px; width: auto; 
    border-radius: 4px; border: 1px solid #444;
}

/* === NO MORE ACTIVITY === */
#load-more-container p {
    color: #aaa;
    font-size: 14px;
    margin: 15px 0;
}

/* Button styles for loading more content */
#load-more-activity {
    display: inline-block;
    padding: 10px 20px;
    background-color: #5f0000;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#load-more-activity:hover {
    background-color: #880000;
}

/* Feed Selector Styles */
.news-feed-type-selector {
    background: #181818 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1em;
    font-family: inherit;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.news-feed-type-selector:focus {
    border-color: #800000 !important;
    outline: none !important;
}
.news-feed-type-selector option {
    background: #181818 !important;
    color: #fff !important;
}







/* =========================================
   V5.1 FEED STYLES - CARBON ROOF SYSTEM
   ========================================= */

/* --- Layout Helper: The Stacked Card --- */
.dms-layout-stacked {
    display: flex;
    flex-direction: column !important; 
    padding: 0 !important;             /* Remove default padding so header hits edges */
    overflow: hidden;                  /* Keeps rounded corners clean */
    gap: 0 !important;                 /* No gap between roof and house */
}

/* --- Zone 1: The Roof (Narrative Header) --- */
.dms-narrative-header {
    background-color: #373737;         /* The Unified Carbon Background */
    border-bottom: 1px solid #333;     /* Subtle separator */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 15px;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Left Side: Icon + Label */
.dms-narrative-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Inter", sans-serif;
    font-size: 14px;            /* Small, crisp tech look */
    font-weight: 500;
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    color: #ffffff;             /* Pure White as requested */
}




/* Time in the header */
.dms-narrative-time {
    font-weight: 400;
    opacity: 0.7;
    font-size: 11px;
    color: #dfdfdf;
}

/* --- Zone 2: The House (Body Content) --- */
.dms-body-flex {
    display: flex;
    padding: 15px;       /* Restore padding for the content area */
    width: 100%;
    box-sizing: border-box;
    gap: 15px;           /* Space between Avatar and Text */
}

/* --- Text & Icon Pop Colors (No Clashing Backgrounds) --- */

/* Gold (Stories) */
.dms-header-gold { color: #ffd700; }
.dms-header-gold i { color: #ffd700; margin-right: 8px; font-size: 20px; }

/* Blue (Photos) */
.dms-header-blue { color: #00d2ff; }
.dms-header-blue i { color: #00d2ff; margin-right: 8px; font-size: 20px; }

/* Purple (Profile Updates) */
.dms-header-purple { color: #ea80fc; }
.dms-header-purple i { color: #ea80fc; margin-right: 8px; font-size: 20px; }

/* Red (Likes) */
.dms-header-red { color: #ed3e3e; }
.dms-header-red i { color: #ed3e3e; margin-right: 8px; font-size: 20px; }

/* Teal (Comments/Replies) */
.dms-header-teal { color: #64ffda; }
.dms-header-teal i { color: #64ffda; margin-right: 8px; font-size: 20px; }

/* Green (Gallery Comments/Replies) */
.dms-header-green { color: #69f0ae; }
.dms-header-green i { color: #69f0ae; margin-right: 8px; font-size: 20px; }

/* Orange (Imports) */
.dms-header-orange { color: #ffab40; }
.dms-header-orange i { color: #ffab40; margin-right: 8px; font-size: 20px; }

/* --- Legacy Helpers (Ensuring content aligns) --- */
.dms-user, .dms-target {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.dms-user:hover, .dms-target:hover {
    color: #ffd369;
    text-decoration: underline;
}



/* =========================================
   MOBILE FIXES (Add to bottom of stylesheet)
   ========================================= */

@media (max-width: 600px) {
    /* 1. Force the Header to stack vertically */
    .dms-narrative-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        height: auto !important;
        gap: 4px !important;
        padding-bottom: 8px !important;
    }

    /* 2. Bump the Icon down 5px */
    .dms-narrative-left i {
        position: relative !important;
        top: 5px !important; 
    }

    /* 3. Fix the Time Stamp placement - MAGIC NUMBER 45px */
    .dms-narrative-time {
        width: 100% !important;
        margin-left: 43px !important;  /* Confirmed 45px alignment */
        margin-top: -4px !important;
        margin-bottom: 4px !important;
        text-align: left !important;
        align-self: flex-start !important;
        opacity: 0.6;
        font-size: 10px !important;
    }
    
    .dms-narrative-left {
        width: 100% !important;
    }

    /* 4. Fix Photo & Comment Layout (Stacking & Overflow) */
    .dms-photo-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px !important;
    }

    .dms-photo-thumb, .dms-photo-thumb img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 220px !important;
        object-fit: cover;
        border-radius: 6px !important;
    }

    .dms-photo-text {
        width: 100% !important;
        padding-left: 0 !important;
        margin-top: 10px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important; 
        word-break: break-word !important; 
        hyphens: auto !important;
    }
}


/* =========================================
   SIDEBAR & WIDGET FIX (Container Queries)
   ========================================= */

/* 1. Turn the card into a "Container" so it knows its own width */
.dms-activity-card {
    container-type: inline-size;
}

/* 2. Triggers whenever the CARD is narrow (Sidebar/Widget), regardless of screen size */
@container (max-width: 420px) {

    /* --- Force Header Stack (Same as Mobile) --- */
    .dms-narrative-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        height: auto !important;
        gap: 4px !important;
        padding-bottom: 8px !important;
    }

    .dms-narrative-left i {
        position: relative !important;
        top: 5px !important; 
    }

    .dms-narrative-time {
        width: 100% !important;
        margin-left: 45px !important;
        margin-top: -4px !important;
        margin-bottom: 4px !important;
        text-align: left !important;
        align-self: flex-start !important;
        opacity: 0.6;
        font-size: 10px !important;
    }
    
    .dms-narrative-left {
        width: 100% !important;
    }

    /* --- Force Photo Stack (Same as Mobile) --- */
    .dms-photo-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .dms-photo-thumb, .dms-photo-thumb img {
        width: 100% !important;
        height: auto !important;
        max-height: 220px !important;
    }

    .dms-photo-text {
        width: 100% !important;
        padding-left: 0 !important;
        margin-top: 10px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important; 
        word-break: break-word !important; 
    }
}

/* ALL THEME LOOPS STYLES  */
/* --- DMS Adult Content Indicator & Tooltip --- */

/* --- DMS Adult Content Indicator & Tooltip (Compacted) --- */
.dms-adult-wrapper { position: relative; display: inline-block; cursor: help; margin-left: 5px; }
.dms-adult-label { border-bottom: 1px dashed rgba(255,255,255,0.5); font-size: 13px; margin-left: 3px; color: #fff; }
.dms-adult-tooltip-text { visibility: hidden; width: 220px; background-color: #fff9c4; color: #333; text-align: center; border: 1px solid #e2dfa8; border-radius: 4px; padding: 8px; position: absolute; z-index: 99; bottom: 125%; left: 50%; margin-left: -110px; opacity: 0; transition: opacity 0.3s; font-size: 12px; line-height: 1.2; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.dms-adult-tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #fff9c4 transparent transparent transparent; }
.dms-adult-wrapper:hover .dms-adult-tooltip-text { visibility: visible; opacity: 1; }
.dms-adult-icon-green { color: #46b450; }
.dms-adult-icon-red { color: #dc3232; }


/* --- DMS RESTRICTED CONTENT STYLES --- */
.dms-restricted-title {
    text-decoration: underline !important;
    text-decoration-style: dashed !important;
    text-decoration-color: #777 !important;
    cursor: help !important; /* Shows a ? cursor to indicate interaction */
    color: #aaa !important;
    transition: color 0.2s ease;
}

.dms-restricted-title:hover {
    color: #fff !important;
    text-decoration-color: #fff !important;
}

/* Modal Overlay */
.dms-helper-modal {
    display: none; 
    position: fixed; 
    z-index: 999999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.85); 
    align-items: center; 
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Modal Content Box */
.dms-helper-content {
    background-color: #1e1e1e; 
    border: 1px solid #444; 
    padding: 30px; 
    border-radius: 12px; 
    max-width: 450px; 
    width: 90%; 
    text-align: center; 
    color: #fff; 
    font-family: 'Inter', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    position: relative;
}

/* Close Button */
.dms-helper-close {
    position: absolute; 
    top: 10px; 
    right: 15px; 
    font-size: 28px; 
    font-weight: 300; 
    color: #888; 
    cursor: pointer;
    line-height: 1;
}
.dms-helper-close:hover { color: #fff; }

/* Learn More Button */
.dms-helper-btn {
    display: inline-block; 
    margin-top: 20px; 
    padding: 10px 20px; 
    background: #e63946; 
    color: #fff !important; 
    text-decoration: none !important; 
    border-radius: 6px; 
    font-weight: 600; 
    font-size: 14px;
    transition: background 0.2s;
}
.dms-helper-btn:hover { background: #d90429; }

/* --- Site News Copy Styles --- */

/* The Button Container (Centers it) */
.site-news-copy_container {
    text-align: center !important;
    margin: 40px 0 20px 0 !important;
    display: block !important;
}

/* The Button Itself */
.site-news-copy_btn {
    display: inline-block !important;
    background-color: #5f0000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 30px !important;
    border-radius: 4px !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    border: 1px solid #5f0000 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
}

/* Hover Effect */
.site-news-copy_btn:hover {
    background-color: #7f0000 !important; /* Lighter Red */
    border-color: #7f0000 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2) !important;
}

/* --- HIDE MODE ALERT BOX --- */
.dms-hide-mode-alert {
    border: 1px dashed #e63946;             /* Red Dashed Border */
    background-color: rgba(230, 57, 70, 0.15); /* Faded Red Background */
    border-radius: 6px;                     /* 6px Radius */
    padding: 12px 20px;
    margin-bottom: 25px;                    /* Space below box */
    color: #fff;                            /* White Text */
    font-family: 'Inter', sans-serif;
    font-weight: 300;                       /* 300 Weight */
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.dms-hide-mode-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;                       /* Slightly bolder for link */
    margin-left: 6px;
}

.dms-hide-mode-link:hover {
    color: #ffcccc;                         /* Lighter on hover */
    text-decoration-style: dashed;
}

/**
 * [STYLESHEET: Story Loop Views V2.0.0]
 * VERSION: 2.0.0
 * CREATED DATE: 2025-11-19
 * NOTE: Refactored to Compact Format (1 style per line).
 */

/* ========================================================== */
/* CLASSIC STORY LOOP | LOOP 1 | Option 1                     */
/* ========================================================== */



/* --- THEME 1 SPECIFIC RESTRICTED STYLES --- */
.dms-restricted-title-theme-1 {
    text-decoration: underline !important;
    text-decoration-style: dashed !important;
    text-decoration-color: #777 !important; /* Keep dashes grey to signal 'status' */
    cursor: help !important;
    color: #B83131 !important; /* Force Theme 1 Red */
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.dms-restricted-title-theme-1:hover {
    color: #B83131 !important; /* Stay Red */
    text-decoration-style: solid !important; /* Go solid like standard theme */
    text-decoration-color: #B83131 !important; /* Red underline */
}


/* ======================= */
/* 1. Container and Card   */
/* ======================= */
.story-list-main, .dms-story-list { display: flex; flex-direction: column; gap: 25px; }
.story-list-card, .dms-story-entry { display: flex; justify-content: flex-start; align-items: stretch; background-color: #111; padding: 20px; border: 1px solid #333; position: relative; gap: 20px; }
.story-list-card.even-row, .dms-story-entry.even-row { background: #1a1a1a; }
.story-list-card.odd-row, .dms-story-entry.odd-row { background: #111; }

/* ============================ */
/* 2. Thumbnail Image (Square!) */
/* ============================ */
.story-thumb-container { width: 90px; min-width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; margin-right: 18px; }
.story-thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 7px!important; box-shadow: 0 2px 12px #0004; background: #222; }

/* ========================= */
/* 3. Author Meta / Avatar   */
/* ========================= */
.story-meta-desktop { display: flex; flex-direction: column; align-items: center; width: 100px; max-width: 100px; margin-left: 18px; margin-right: 0; flex-shrink: 0; }
.story-meta-mobile { display: none; align-items: center; gap: 12px; margin-bottom: 8px; }
.story-avatar, .dms-avatar { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; background: #444; box-shadow: 0 1px 5px #0005; }
.story-author-name, .dms-author-block { font-size: 14px; color: #4ae54a; font-family: 'Inter', sans-serif; text-align: center; margin-bottom: 0; font-weight: 500; word-wrap: break-word; word-break: break-word; hyphens: auto; line-height: 1.2; width: 100%; }
.story-author-name a { color: #4ae54a; text-decoration: none; }
.story-author-name a:hover { text-decoration: underline; }
.story-thumb, .dms-story-thumb, .gallery-photo-thumb, .gallery-image-thumb { width: 100px !important; height: 100px !important; max-width: 100px !important; max-height: 100px !important; min-width: 100px !important; min-height: 100px !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; border-radius: 8px!important; background: #222; display: block; }
@media (max-width: 800px) { .story-meta-desktop { display: none !important; } .story-meta-mobile { display: flex !important; } }
@media (min-width: 801px) { .story-meta-desktop { display: flex !important; } .story-meta-mobile { display: none !important; } }

/* ========================= */
/* 4. Story Content/Text     */
/* ========================= */
.story-content, .dms-story-left { flex: 1 1 0%; min-width: 0; color: #ddd; }
.story-title, .dms-story-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.3; font-size: 20px; color: #B83131; margin-bottom: 2px; }
.story-title a, .dms-story-title a { color: #B83131; font-size: inherit; font-weight: 600; text-decoration: none; margin-right: 6px; }
.story-title a:hover, .dms-story-title a:hover { text-decoration: underline; color: #B83131; }
.story-excerpt, .dms-excerpt { margin-top: 5px; font-size: 14px; color: #aaa; margin-bottom: 10px; }

/* ========================= */
/* 5. Edit Link Bottom       */
/* ========================= */
.story-edit-link, .dms-edit-story-link { margin-top: 8px; text-align: left; }
.story-edit-link a, .dms-edit-story-link a { display: inline-block; background: #5f0000; color: #fff; border-radius: 4px; font-size: 12px; font-family: 'Inter', sans-serif; font-weight: 400; padding: 2px 8px; border: none; text-decoration: none; line-height: 1.3; transition: background 0.15s, color 0.15s; }
.story-edit-link a:hover, .dms-edit-story-link a:hover { background: #b83131; color: #fff; text-decoration: underline; }

/* ========================= */
/* 6. Like/Tag Area          */
/* ========================= */
.dms-likes { display: inline-flex; align-items: center; white-space: nowrap; font-size: 14px; color: #00cc00; }
.dms-like-icon { margin-right: 3px; }
.dms-tags { margin-top: 8px; font-size: 13px; color: #B83131; margin-bottom: 5px; }
.dms-tags .match { color: #ffff88; font-style: italic; font-weight: 400; text-decoration: none; }
.dms-tags .no-match { color: #FFFF88; font-weight: normal; font-style: italic; text-decoration: none; }
.dms-meta { margin-top: 8px; font-size: 12px; color: #999; }

/* ========================= */
/* 7. Responsive/Stack       */
/* ========================= */
@media (max-width: 700px) {
    .story-list-card, .dms-story-entry { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .story-thumb-container, .story-meta-desktop { margin-left: 0 !important; margin-right: 0 !important; justify-content: flex-start; }
    .story-content, .dms-story-left { min-width: 0; width: 100%; }
    .story-title, .dms-story-title { margin-bottom: 5px; }
    .story-author-name, .dms-author-block { text-align: left; }
}

/* ========================= */
/* 8. Pagination & Sort      */
/* ========================= */
.dms-pagination { margin-top: 30px; text-align: center; }
.dms-pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 3px; background-color: #222; color: #fff; text-decoration: none; border-radius: 3px; font-size: 14px; }
.dms-pagination .page-numbers:hover { background-color: #444; }
.dms-pagination .page-numbers.current { background-color: #B83131; font-weight: bold; cursor: default; }

/* ========================= */
/* 9. AUTHOR PAGE STYES      */
/* FILTER AND SORT           */
/* ========================= */
.dms-sort-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-bottom: 20px; }
.dms-search-form label { font-family: 'Inter', sans-serif; font-size: 14px; color: #ffffff; margin-right: 10px; }
.dms-search-form select { font-family: 'Inter', sans-serif; font-size: 14px; padding: 5px 8px; background-color: #222; color: #ffffff; border: 1px solid #444; border-radius: 4px; margin-right: 20px; margin-bottom: 0; }
form.dms-search-form input#keyword { font-family: 'Inter', sans-serif; font-size: 14px; padding: 5px 8px; background-color: #222; color: #ffffff; border: 1px solid #444; border-radius: 4px; margin-right: 20px; margin-bottom: 0; }
form.dms-search-form input#keyword::placeholder, form.dms-search-form input#keyword::-webkit-input-placeholder, form.dms-search-form input#keyword::-moz-placeholder, form.dms-search-form input#keyword:-ms-input-placeholder, form.dms-search-form input#keyword:-moz-placeholder { color: #ffffff !important; opacity: 1 !important; }
.dms-category-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; margin-bottom: 20px; }
.dms-category-filter label { display: flex; align-items: center; font-size: 14px; font-family: 'Inter', sans-serif; color: #ffffff; cursor: pointer; }
.dms-category-filter input[type="checkbox"] { margin-right: 6px; }
.dms-search-form button, .dms-clear-btn { display: inline-block; padding: 8px 16px; background-color: #B83131; color: #ffffff; font-family: 'Inter', sans-serif; font-size: 14px; border: 1px solid #ff9999; border-radius: 4px; cursor: pointer; text-decoration: none; transition: background-color 0.2s ease-in-out; margin-bottom: 25px; }
.dms-search-form button:hover, .dms-clear-btn:hover { background-color: #e60000; color: #fff; }
.dms-clear-btn { margin-left: 10px; }
.dms-results-count { font-family: 'Inter', sans-serif; font-size: 14px; color: #ffffff; margin-bottom: 25px; }

/* Author Archive Sort Form */
.dms-sort-form { margin-bottom: 25px; }
.dms-sort-form label { font-family: 'Inter', sans-serif; font-size: 14px; color: #ffffff; margin-right: 10px; }
.dms-sort-form select { font-family: 'Inter', sans-serif; font-size: 14px; padding: 5px 8px; background-color: #222; color: #ffffff; border: 1px solid #444; border-radius: 4px; margin-right: 20px; margin-bottom: 0; min-width: 135px; }
.dms-sort-form button { display: inline-block; padding: 8px 16px; background-color: #B83131; color: #ffffff; font-family: 'Inter', sans-serif; font-size: 14px; border: 1px solid #ff9999; border-radius: 4px; cursor: pointer; text-decoration: none; transition: background-color 0.2s ease-in-out; margin-top: 10px; }
.dms-sort-form button:hover { background-color: #e60000; color: #fff; }
@media (min-width: 600px) { .dms-sort-form { display: flex; flex-wrap: nowrap; align-items: center; gap: 15px; } }

/* ========================= */
/* PAGINATION JUMP BOX       */
/* ========================= */
.dms-jump-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ccc;
    font-family: 'Inter', sans-serif;
    margin-left: 10px;
}

.dms-jump-input {
    width: 50px;
    padding: 5px;
    background: #222;
    border: 1px solid #444;
    color: #ffffff !important; /* Forces text white */
    text-align: center;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    -moz-appearance: textfield; /* Firefox: Remove spinners */
}

.dms-jump-input:focus {
    border-color: #666;
    color: #ffffff !important;
}

/* Chrome, Safari, Edge, Opera: Remove spinners */
.dms-jump-input::-webkit-outer-spin-button,
.dms-jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dms-jump-btn {
    padding: 5px 12px;
    background: #5f0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.dms-jump-btn:hover {
    background: #7a0000;
}



/* ========================================================== */
/* THEME 2: diMENsions MODERN (Corrected Logic)               */
/* ========================================================== */

/* --- Layout & Container --- */
.dms-modern-list { display: flex; flex-direction: column; gap: 15px; }

.dms-modern-item { 
    background-color: #1a1a1a; 
    border: 1px solid #333; 
    border-radius: 8px; 
    padding: 20px; 
    display: flex; 
    gap: 20px; 
    color: #fff; 
    font-family: 'Inter', sans-serif; 
    align-items: flex-start; /* Ensure desktop title/photo align top */
}

.dms-modern-odd-row { background-color: #1a1a1a; }
.dms-modern-even-row { background-color: #222222; }

/* --- Left Column (Desktop Photo) --- */
.dms-modern-left { flex: 0 0 100px; }
.dms-modern-avatar { width: 100px; height: 125px; object-fit: cover; border-radius: 8px; display: block; }
.dms-modern-mobile-lockup { display: none; } /* Hide Mobile Lockup on Desktop */

/* --- Right Column --- */
.dms-modern-right { flex: 1 1 0%; min-width: 0; }
.dms-modern-title { 
    font-size: 24px; 
    font-weight: 600; 
    margin: -4px 0 8px 0; /* Negative margin to align optically with photo top */
    line-height: 1.2; 
}
.dms-modern-title a { color: #fff; text-decoration: none; }
.dms-modern-title a:hover { color: #aaa; }

/* --- Meta Row --- */
.dms-modern-meta { font-size: 13px; color: #aaa; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; }
.dms-modern-meta .dms-meta-author-link { margin-left: 4px; color: #fff; }
.dms-modern-meta a:hover { color: #aaa; }
.dms-modern-meta .sep { margin: 0 6px; opacity: 0.5; }
.dms-meta-icon-color { color: #fff; margin-right: 3px; }

/* Neon Icons */
.dms-meta-icon-color.fa-clock-o { color: #FFD700; margin-right: 4px; } 
.dms-meta-icon-color.fa-eye { color: #00d2ff; margin-right: 4px; }      
.dms-meta-icon-color.fa-comments { color: #7fff00; margin-right: 4px; }  
.dms-meta-icon-color.fa-book-reader { color: #ff66cc; margin-right: 4px; } 
.dms-meta-icon-color.fa-thumbs-up { color: #3f6da5; margin-right: 4px; } 
.dms-modern-meta .likes { color: #fff; }

/* --- Excerpt --- */
.dms-modern-excerpt { font-size: 14px; color: #eee; margin-bottom: 15px; line-height: 1.5; }
.dms-modern-excerpt p { margin: 0; }

/* --- Taxonomies --- */
.dms-modern-taxonomies { margin-bottom: 10px; font-size: 13px; }
.dms-tax-row { margin-bottom: 12px; }
.dms-pill-group { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.dms-tax-label { font-weight: 700; margin-right: 5px; }
.dms-tax-label-mono { font-weight: 700; margin-right: 5px; }
.dms-pill { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 500; border-radius: 3px; white-space: nowrap; }
.dms-pill-match { background-color: #3f6da5; color: #fff; }
.dms-pill-unmatch { background-color: #444; color: #ccc; }
.dms-tax-row a { color: #fff!important; }

/* --- Edit Link --- */
.dms-modern-edit { margin-top: 20px; }
.dms-modern-edit a { display: inline-block; padding: 4px 10px; background: #222222; color: #fff; border: 1px solid #444; border-radius: 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; text-decoration: none; transition: all 0.2s; }
.dms-modern-edit a:hover { background: #3f6da5; color: #fff; border-color: #3f6da5; }

/* --- Admin Line --- */
.dms-modern-admin-row { margin-top: 15px; padding-top: 10px; border-top: 1px dashed #333; font-size: 11px; font-family: monospace; color: #666; }

/* ========================================================== */
/* --- Mobile/Responsive Logic --- */
/* ========================================================== */
@media (max-width: 768px) {
    .dms-modern-item { flex-direction: column; gap: 15px; }
    
    /* HIDE Desktop-Specific Elements */
    .dms-desktop-only { display: none !important; }
    
    /* SHOW Mobile Lockup */
    .dms-modern-mobile-lockup { 
        display: flex !important; 
        align-items: center; /* FIX: Vertically Center Title with Photo */
        gap: 15px; 
        margin-bottom: 10px; 
    }
    
    .dms-mobile-photo .dms-modern-avatar {
        width: 65px;  
        height: 65px; 
        object-fit: cover;
        border-radius: 6px;
        display: block; /* Ensure block level for spacing */
    }
    
    /* Mobile Title Container */
    .dms-mobile-title-box .dms-modern-title {
        font-size: 20px;
        margin: -3px 0 0 0; /* Negative margin to perfectly align text cap-height with photo top */
        line-height: 1.2;
        display: block;
    }

    /* Inline Meta for Mobile */
    .dms-modern-meta { 
        flex-direction: row; 
        flex-wrap: wrap; 
        align-items: center; 
        gap: 0; 
        margin-bottom: 10px;
        font-size: 12px;
    }
    .dms-modern-meta .sep { display: inline-block; margin: 0 4px; }
}



/* ========================================================== */
/* THEMES 3 & 4: diMENsions MONOCHROME & COMPACT              */
/* Shared styles for both compact list views                  */
/* ========================================================== */

/* Container & Alternating Rows */
.dms-compact-list { display: flex; }
.dms-compact-list { flex-direction: column; }
.dms-compact-list { gap: 0; } 

/* Card Item */
.dms-compact-item { background-color: #111; }
.dms-compact-item { border: 1px solid #333; }
.dms-compact-item { border-radius: 0; }
.dms-compact-item { padding: 20px; }
.dms-compact-item { color: #fff; }
.dms-compact-item { font-family: 'Inter', sans-serif; }
.dms-compact-item { display: flex; }
.dms-compact-item { flex-direction: column; }
.dms-compact-item { margin-bottom: 0; }

/* Row Alternation (Monochrome) */
.dms-compact-item:first-child { border-top-left-radius: 8px; }
.dms-compact-item:first-child { border-top-right-radius: 8px; }
.dms-compact-item:last-child { border-bottom-left-radius: 8px; }
.dms-compact-item:last-child { border-bottom-right-radius: 8px; }
.dms-compact-item.even-row { background-color: #1a1a1a; }
.dms-compact-item.odd-row { background-color: #111; }

/* Title (Grey) */
.dms-compact-title { font-size: 20px; }
.dms-compact-title { font-weight: 600; }
.dms-compact-title { margin: 0 0 5px 0; }
.dms-compact-title { line-height: 1.3; }
.dms-compact-title a { color: #ccc; }
.dms-compact-title a { text-decoration: none; }
.dms-compact-title a:hover { text-decoration: underline; }
.dms-compact-title a:hover { color: #fff; }

/* Meta Line */
.dms-compact-meta { font-size: 12px; }
.dms-compact-meta { color: #888; }
.dms-compact-meta { margin-bottom: 12px; }
.dms-compact-meta { align-items: center; }
.dms-compact-meta { display: flex; }
.dms-compact-meta { flex-wrap: wrap; }
.dms-compact-meta a { color: #aaa; }
.dms-compact-meta a { text-decoration: none; }
.dms-compact-meta a:hover { text-decoration: underline; }
.dms-compact-meta .sep { margin: 0 6px; }
.dms-compact-meta .sep { opacity: 0.5; }
.dms-compact-meta .likes { color: #fff; }
.dms-meta-compact-icon { color: #fff; }
.dms-meta-compact-icon { margin-right: 4px; } /* Added spacing */
.dms-compact-meta a.author-link { margin-left: 5px; /* Adds space after "By" */}

/* Summary/Excerpt */
.dms-compact-excerpt { font-size: 14px; }
.dms-compact-excerpt { line-height: 1.5; }
.dms-compact-excerpt { color: #fff; }
.dms-compact-excerpt { margin-bottom: 12px; }
.dms-compact-excerpt p { margin: 0; }

/* Taxonomies (Themes/Tags) */
.dms-compact-taxonomies { font-size: 13px; }
.dms-compact-taxonomies { margin-bottom: 10px; }
.dms-tax-row { margin-bottom: 2px; }
.dms-tax-row { color: #ddd; }
.dms-tax-row a { font-style: italic; }
.dms-tax-row a { color: #aaa; }
.dms-tax-row a { text-decoration: none; }
.dms-tax-row a:hover { text-decoration: underline; }
.dms-tax-row a:hover { color: #fff; }
.dms-tax-row b { font-weight: 700; }
.dms-tax-row b { color: #fff; }
.dms-tax-row i { font-weight: 700; }
.dms-tax-row i { font-style: italic; }
.dms-tax-row i { color: #fff; }

/* Edit Link (Pill) */
.dms-compact-edit { margin-top: 10px; }
.dms-compact-edit a { display: inline-block; }
.dms-compact-edit a { padding: 2px 6px; }
.dms-compact-edit a { background: #ddd; } /* Light Grey Default */
.dms-compact-edit a { color: #111; } /* Dark Text */
.dms-compact-edit a { border: none; }
.dms-compact-edit a { border-radius: 0; }
.dms-compact-edit a { font-size: 12px; }
.dms-compact-edit a { font-weight: 500; }
.dms-compact-edit a { text-transform: uppercase; }
.dms-compact-edit a { text-decoration: none; } /* Default state has no underline */
.dms-compact-edit a:hover { background: #5f0000; } /* NEW: Bright Red Hover */
.dms-compact-edit a:hover { color: #111; } /* Ensures text stays dark (removes potential browser underline/color change) */
.dms-compact-edit a:hover { text-decoration: none; } /* Explicitly removes underline on hover */
.dms-compact-edit a:hover { background: #3263D6; color: #ffffff !important; text-decoration: none; }


/* Admin Only Line */
.dms-compact-admin-row { margin-top: 15px; }
.dms-compact-admin-row { padding-top: 10px; }
.dms-compact-admin-row { border-top: 1px dashed #333; }
.dms-compact-admin-row { font-size: 11px; }
.dms-compact-admin-row { font-family: monospace; }
.dms-compact-admin-row { color: #666; }




/* Ensure styles apply to the front-end */
.author-category-tags {
    font-family: 'Inter', sans-serif;  /* Apply 'Inter' font family */
    color: white; /* Set all text to white */
    font-size: 14px; /* Set font size to 14px */
    font-weight: 200; /* Set font weight to 200 */
    margin-bottom: 20px; /* Add space after the section */
}

/* Styling for the author's name */
.author-name {
    font-size: 16px;  /* Slightly larger for emphasis */
    color: white;  /* Yellow color for story count */
    font-weight: 500; /* A bit bolder for emphasis */
}

/* Styling for the story count */
.story-count {
    font-size: 16px;  /* Slightly larger for emphasis */
    color: #FFD96D;  /* Yellow color for story count */
    font-weight: 500; /* A bit bolder for emphasis */
}

/* Add space after story count */
.story-count + span {
    display: inline-block;
    margin-top: 10px;  /* Add a margin to make sure the tags start on a new line */
}

/* The section where category tags are displayed */
.category-tag {
    display: inline-block; /* Keep tags inline */
    color: white;  /* White color for the tags */
    margin: 5px;  /* Add spacing between tags */
    background-color: transparent;  /* No background */
    font-weight: 200;  /* Lighter font weight */
}

/* Count inside each tag */
.tag-count {
    color: red;  /* Red color for the count */
}

/* Separate tags into a new line */
.category-tag {
    display: inline-block;
    margin: 5px;
    background: transparent;
    font-weight: 200;
}

.category-tags-list {
    display: block;
    margin-top: 10px;
}


/* ================================
   AUTHOR HEADER
   ================================ */
.gallery-author-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gallery-author-header img {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.gallery-author-header h2 {
    font-size: 24px;
    margin: 0;
    color: #ffff66;
}

.gallery-author-header p {
    margin: 4px 0;
    color: #888;
}

/* ================================
   POWER RANK STARS
   ================================ */
.gallery-star-rating {
    font-size: 20px;
    letter-spacing: 2px;
}

.gallery-star-rating .filled {
    color: gold;
}

.gallery-star-rating .empty {
    color: #555;
}

/* ================================
   FOLDER HEADINGS
   ================================ */
.gallery-folder-heading {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 8px;
}

.gallery-folder-heading .folder-name {
    color: #ffff66;
}

.gallery-folder-heading .gallery-folder-meta {
    color: #ddd;
    font-weight: 400;
}

/* ================================
   GALLERY GRID
   ================================ */
.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* ================================
   THUMBNAIL CONTAINER
   ================================ */
.gallery-thumbnail-wrapper {
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

/* ================================
   IMAGE STYLING
   ================================ */
.gallery-thumbnail {
    width: 160px !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 6px !important;
    transition: transform 0.2s ease !important;
}



.gallery-thumbnail:hover {
    transform: scale(1.05);
}

/* ================================
   META UNDER IMAGES
   ================================ */
.gallery-photo-meta {
    font-size: 12px;
    margin-top: 5px;
    color: #aaa;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-photo-meta .likes {
    color: #6eff6e;
}

.gallery-photo-meta .views {
    color: #ccc;
}

/* ================================
   MOBILE STYLING – TABLET
   ================================ */
@media (max-width: 768px) {
    .gallery-thumbnail-wrapper {
        width: 120px;
    }

    .gallery-author-header h2 {
        font-size: 20px;
    }

    .gallery-photo-meta {
        font-size: 11px;
        gap: 8px;
    }
}

/* ================================
   MOBILE STYLING – PHONES
   ================================ */
@media (max-width: 480px) {
    /* Shrink wrapper to fit 3 across */
    .gallery-thumbnail-wrapper {
        width: 90px;
        margin-bottom: 15px;
    }

    .gallery-thumbnail {
        width: 90px !important;
        height: 113px !important; /* 4:5 aspect ratio */
        object-fit: cover !important;
        border-radius: 6px !important;
        display: block !important;
    }

    .gallery-photo-meta {
        font-size: 9px;
        gap: 5px;
        justify-content: center;
        margin-top: 4px;
    }
}



/* ================================
   RECENT GALLERY – USER HEADING
   ================================ */
.gallery-member-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffff66;
    margin-bottom: 4px;
}

.gallery-member-heading .gallery-member-name {
    color: #ffff66;
    font-weight: 500;
}

.gallery-member-heading .gallery-photo-count {
    color: #dddddd;
    font-weight: 400;
}

.gallery-member-heading .gallery-member-updated {
    color: #888;
    font-size: 14px;
    font-weight: 300;
    margin-left: auto;
}

/* ================================
   VIEW GALLERY LABEL
   ================================ */
.gallery-view-label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ================================
   DIVIDER BETWEEN USER BLOCKS
   ================================ */
.gallery-divider {
    width: 100%;
    height: 2px;
    background-color: #5f0000;
    margin: 20px 0;
}

/* ================================
   MAIN GALLERY MEMBER BLOCK
   ================================ */
.gallery-member {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 15px;
}

/* ================================
   USER INFO BLOCK
   ================================ */
.gallery-member-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ================================
   USER AVATAR
   ================================ */
.avatar.avatar-90.photo,
.gallery-member-avatar {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 3px solid #5f0000 !important;
}

/* ================================
   USER TEXT BLOCK
   ================================ */
.gallery-member-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.4;
}


/* ================================
   RECENT GALLERY ROW
   ================================ */
.recent-gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

/* ================================
   RECENT GALLERY THUMBNAILS (6 per row)
   ================================ */
.recent-gallery-thumbnail {
    width: 115px !important;
    height: 144px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 6px !important;
    border: 0px solid #8a0000 !important;
    transition: transform 0.2s ease !important;
    max-width: 115px !important;
    max-height: 144px !important;
    min-width: 115px !important;
    min-height: 144px !important;
}

.recent-gallery-thumbnail:hover {
    transform: scale(1.50);
}

/* ================================
   RESPONSIVE – PHONE
   ================================ */
@media (max-width: 480px) {
    .recent-gallery-thumbnail {
        width: 100px !important;
        height: 125px !important;
        max-width: 100px !important;
        max-height: 125px !important;
        min-width: 100px !important;
        min-height: 125px !important;
    }
}
@media (max-width: 480px) {
    .gallery-member-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-member-heading .gallery-member-updated {
        margin-left: 0 !important;
    }
}


/* Wrapper */
.nc-wrapper {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #fff;
    max-width: 100%;
    padding: 10px 0;
}

/* Heading */
.nc-heading {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ccc;
}

/* Entry row */
.nc-entry {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    column-gap: 10px;
    align-items: start;
    padding: 6px 12px;
    border-bottom: 1px solid #222;
    background-color: #111;
}

/* Alternating row color */
.nc-entry.odd {
    background-color: #1a1a1a;
}

/* Author name */
.nc-author a {
    color: #ff4d4d;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

/* Title text */
.nc-title a {
    color: #ffff66;
    font-weight: 300;
    text-decoration: none;
    word-break: break-word;
}

/* Time */
.nc-time {
    color: #ccc;
    font-size: 12px;
    white-space: nowrap;
    text-align: right;
}

/* Footer note */
.nc-wrapper .note {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    padding: 0 12px;
}

/* Mobile stacking */
@media (max-width: 768px) {
    .nc-entry {
        grid-template-columns: 1fr;
        row-gap: 5px;
    }

    .nc-time {
        text-align: left;
        font-size: 11px;
    }
}


/* =========================================
   DMS Profile Archive Loop Styles (V4.1)
   ========================================= */

/* Main Container */
.dms-profile-archive {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.3s ease;
}
.fade-out { opacity: 0.5; pointer-events: none; }
.fade-in { opacity: 1; }

/* Row Card */
.dms-profile-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}
.dms-profile-row.odd { background-color: #1a1a1a; }
.dms-profile-row.even { background-color: #111; }

/* --- 1. IMAGE COLUMN & OVERLAY --- */
.dms-profile-image-col {
    flex-shrink: 0;
    width: 180px;
}

.dms-profile-image {
    position: relative; /* Anchors the chip */
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 10px;
}

.dms-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The Identity Chip Overlay */
.dms-identity-chip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 0;
    text-align: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    z-index: 2;
    /* Semi-transparent gradient or solid? Using solid per prompt requests for color */
}

/* --- 2. INFO COLUMN --- */
.dms-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    color: #FFFF99;
}

/* Desktop Name (Hidden on Mobile) */
.dms-desktop-name-wrapper {
    display: block;
}
.dms-profile-username-desktop {
    font-size: 22px;
    font-weight: 600;
    color: #FFFFA0;
    text-decoration: none;
}

/* Mobile Name (Hidden on Desktop) */
.dms-mobile-name-wrapper {
    display: none; /* Default hidden */
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}
.dms-profile-username-mobile {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFA0;
    text-decoration: none;
}

/* --- 3. METADATA ROW --- */
.dms-profile-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #ccc;
    margin-bottom: 5px;
}

.dms-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* New Member Badge */
.dms-new-member-badge {
    background-color: #ff6600; /* Orange */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 4px;
}

.dms-meta-separator {
    color: #555;
}

/* --- 4. FANTASY TAGS --- */
.dms-tag-group {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.dms-tag-label {
    font-weight: 600;
    color: #FF6600; /* Orange Label */
}

.dms-tag-list a {
    color: #FFFF99; /* Yellow Links */
    text-decoration: none;
}
.dms-tag-list a:hover {
    text-decoration: underline;
}

/* --- 5. FOOTER INFO --- */
.dms-profile-footer {
    margin-top: auto; /* Pushes to bottom if space allows */
    padding-top: 12px;
    border-top: 1px solid #333;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

.dms-footer-item .dms-label {
    color: #FF6600;
    font-weight: 500;
}

/* --- 6. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    /* Stack the layout */
    .dms-profile-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }

    /* Show Mobile Name, Hide Desktop Name */
    .dms-mobile-name-wrapper { display: block; }
    .dms-desktop-name-wrapper { display: none; }

    /* Adjust Image Width */
    .dms-profile-image-col {
        width: 70%;
        max-width: 240px;
        margin-bottom: 15px;
    }

    /* Center Align Meta Row */
    .dms-profile-meta-row {
        justify-content: center;
        font-size: 12px;
    }

    /* Center Footer */
    .dms-profile-footer {
        justify-content: center;
        width: 100%;
    }
}

/* Pagination */
.dms-profile-pagination {
    margin-top: 30px;
    text-align: center;
}
.dms-profile-pagination a, .dms-profile-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 2px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}
.dms-profile-pagination .current {
    background: #C22525;
    font-weight: bold;
}

.author-profile-image {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px !important;
    display: block;
    overflow: hidden;
}


#profile-filter-form {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Section containers */
.dms-filter-group {
    margin-bottom: 25px;
}

/* Section titles */
.dms-filter-heading {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

/* Checkbox label style */
.dms-filter-checkbox {
    display: block;
    margin: 3px 0;
    font-size: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Standard checkboxes */
.dms-filter-checkbox input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(1.05);
}

/* Force grid layout for 'profile-category' (My Fantasy Themes) */
#profile-filter-form .dms-filter-group[data-taxonomy="profile-category"] .dms-filter-checkbox {
    display: inline-block;
    width: calc(33.333% - 10px);
    margin: 5px;
    font-size: 13px;
}

@media (max-width: 768px) {
    #profile-filter-form .dms-filter-group[data-taxonomy="profile-category"] .dms-filter-checkbox {
        width: calc(50% - 10px);
    }
}


/* Apply + Clear button group */
.dms-filter-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Buttons */
.dms-filter-apply,
.dms-filter-clear {
    padding: 8px 15px;
    border: none;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    background: #a12121;
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

.dms-filter-clear {
    background: #7c1e1e;
}

.dms-filter-apply:hover,
.dms-filter-clear:hover {
    opacity: 0.85;
}
.dms-filter-country {
    width: 100%;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
    background: #1c1c1c;
    color: #fff;
    border: 1px solid #444;
    font-family: 'Inter', sans-serif;
    margin-top: 5px;
}
.dms-match-toggle label {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

#profile_search_name {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;           /* Thinner */
    font-size: 14px !important;
    width: 360px !important;                /* Wider */
    box-sizing: border-box !important;
    outline: none !important;
    margin-left: 10px !important;           /* Left margin */
    transition: border 0.2s, box-shadow 0.2s;
    display: inline-block !important;       /* Aligns with label */
    vertical-align: middle !important;
}

#profile_search_name::placeholder {
    color: #bbb !important;
    opacity: 1 !important; /* For Firefox */
}



.link-results {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.link-card {
    position: relative;
    display: flex;
    background-color: #1b1b1b;
    border-left: 6px solid #555; /* fallback if JS fails */
    padding: 15px 15px 15px 18px;
    margin-bottom: 10px;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease-in-out;
}

/* Alternating rows */
.link-card.even {
    background-color: #222222;
}
.link-card.odd {
    background-color: #1b1b1b;
}

.link-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-radius: 3px 0 0 3px;
}

/* Content area */
.link-content {
    margin-left: 10px;
    width: 100%;
    color: #fff;
    font-size: 14px;
}

.link-content a {
    color: #ffffa0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.link-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Flags with labels */
.link-flags {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    font-weight: 500;
}

.link-flags div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Flag color overrides */
.flag-paid {
    color: #e66100;
}

.flag-registration {
    color: #ffc107;
}

.flag-revenue {
    color: #4dd0e1;
}

/* Description */
.link-card p {
    color: #ccc;
    font-size: 14px;
    margin: 5px 0 10px 0;
}

/* Taxonomy type label */
.link-type {
    font-size: 12px;
    font-weight: 300;
    color: #aaa;
    margin-top: 4px;
}

.link-filter-form {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #111111;
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #ffffff;
}

.link-filter-form select,
.link-filter-form input[type="text"] {
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 14px;
    min-width: 200px;
}

.link-filter-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 300;
}

.link-filter-form button {
    background-color: #5f0000;
    color: #ffffff;
    padding: 6px 14px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.link-filter-form button:hover {
    background-color: #7a0000;
}

.reset-filters-button {
    background-color: #333;
    color: #ccc;
    padding: 6px 14px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.reset-filters-button:hover {
    background-color: #555;
    color: #fff;
}
.link-report {
    margin-top: 8px;
}

.report-link {
    color: #bbbbbb !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 5px !important;
}

.report-link:hover {
    color: #ff6f61 !important;
    text-decoration: underline !important;
}

.report-success {
    background-color: #112911;
    color: #aaffaa;
    padding: 10px 15px;
    border: 1px solid #2a4a2a;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
}

.report-error {
    background-color: #2b1111;
    color: #ff6f61;
    padding: 10px 15px;
    border: 1px solid #a13e3e;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
}
.add-link-button {
    background-color: #388E3C; /* Darker green */
    color: white;
    padding: 6px 14px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin-left: 10px;
}

.add-link-button:hover {
    background-color: #2c6c2f; /* Slightly darker green on hover */
}


.dms-photo-moderation-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #111111;
    border-radius: 8px;
    color: #ffffff;
    margin-bottom: 30px; /* <-- ADD THIS LINE */
}


.dms-photo-moderation-image {
    flex: 0 0 200px;
}

.dms-photo-moderation-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.dms-photo-moderation-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ffffff; /* <- force text inside info block white */
}

.dms-photo-moderation-author,
.dms-photo-moderation-caption,
.dms-photo-moderation-taxonomy,
.dms-photo-moderation-edit-link {
    color: #ffffff; /* <- each text block forced white */
    font-size: 16px;
}

.dms-photo-moderation-edit-link a {
    color: #ffffff; /* <- even links white */
    text-decoration: underline;
}


.dms-photo-moderation-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dms-photo-moderation-image img:hover {
    transform: scale(2.0);
    z-index: 10;
   
}



/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .dms-photo-moderation-item {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .dms-photo-moderation-image img {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .dms-photo-moderation-info {
        text-align: center;
    }

    .dms-photo-moderation-info a {
        display: inline-block;
        margin-top: 8px;
    }
}


.dms-profile-alert {
    background: #550000;
    color: #fff;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.dms-homepage-alert {
    background: #660000;
    color: #fff;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 16px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.dms-homepage-alert a {
    color: #ffd700;
    text-decoration: underline;
}


/* === Global Wrapper === */
.dms-profiles-status-list {
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 10px;
}

/* === Section Headings === */
.dms-section-heading {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin: 40px 0 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Red for Active Flagged */
.dms-heading-flagged {
  color: #ff3333;
}

/* Green for Good Standing */
.dms-heading-good {
  color: #44dd88;
}


/* === Group Styling === */
.dms-profile-status-group {
  padding: 15px;
  border-radius: 8px;
}

.dms-profile-status-group.active-flags {
  background-color: #202020;
}

.dms-profile-status-group.resolved-history {
  background-color: #2a2a2a;
}

/* === Individual Profile Block === */
.dms-profile-status-item {
  background-color: #1a1a1a;
  padding: 20px;
  border: 1px solid #444;
  border-radius: 6px;
}

/* === Header === */
.dms-profile-header {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #f1f1f1;
}

.dms-profile-header span {
  font-size: 14px;
  color: #aaa;
  margin-left: 10px;
}

/* === Metadata === */
.dms-profile-meta {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 8px;
  line-height: 1.6;
}

.dms-profile-meta .label {
  font-weight: 600;
  display: inline-block;
  min-width: 150px;
}

/* === Message to Member === */
.dms-profile-message {
  background-color: #111;
  border-left: 4px solid #cc0000;
  padding: 12px 14px;
  font-size: 14px;
  color: #f0f0f0;
  margin: 16px 0 14px;
}

/* === History Section === */

.dms-profile-history-entry.unresolved .status {
  color: #ff9933; /* vivid orange */
}

.dms-profile-history-entry.unresolved::after {
  content: " (Unresolved)";
  color: #ff9933;
  font-weight: 400;
  font-size: 12px;
  margin-left: 6px;
}



.dms-profile-history {
  background-color: #181818;
  padding: 10px;
  border-radius: 5px;
  font-size: 13px;
  color: #ccc;
}

.dms-profile-history-entry {
  border-bottom: 1px solid #333;
  padding: 6px 0;
}

.dms-profile-history-entry:last-child {
  border-bottom: none;
}

.dms-profile-history-entry .date {
  color: #aaa;
  font-size: 12px;
}

.dms-profile-history-entry .status {
  font-weight: 500;
  color: #fff;
}

.dms-profile-history-entry .notes {
  color: #bbb;
  font-style: italic;
  margin-top: 2px;
}

/* === Edit Link === */
.dms-profile-edit-link {
  margin-top: 12px;
}

.dms-profile-edit-link a {
  background-color: #5f0000;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
}

.dms-profile-edit-link a:hover {
  background-color: #990000;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
  .dms-profile-status-item {
    padding: 15px;
  }

  .dms-profile-header {
    font-size: 16px;
  }

  .dms-profile-meta,
  .dms-profile-message,
  .dms-profile-history {
    font-size: 13px;
  }

  .dms-profile-edit-link a {
    font-size: 12px;
    padding: 5px 10px;
  }

  .dms-profile-meta .label {
    display: block;
    min-width: auto;
    margin-bottom: 3px;
  }
}


.flag-profile-form select,
.flag-profile-form textarea,
.flag-profile-form input[type="text"] {
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 14px;
    min-width: 200px;
    width: 100%;
    box-sizing: border-box;
}

.flag-profile-form textarea {
    background-color: #222;
    color: #fff; /* <- This makes the typed text white */
    border: 1px solid #555;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 14px;
    min-height: 150px;
    width: 600px;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
}



.flag-profile-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 300;
    color: #fff;
    margin-bottom: 5px;
}

.flag-profile-form button {
    background-color: #5f0000;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.flag-profile-form button:hover {
    background-color: #7a0000;
}

.flag-profile-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
    font-size: 14px;
}
/*Profile Flag Modal Styles/*
/**************************/*

.dms-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 9999; }
.dms-modal-content { background: #111; padding: 20px; margin: 10% auto; width: 400px; color: #fff; border-radius: 6px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; }
.form-group textarea, .form-group select { width: 100%; }


#flag-profile-modal.dms-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.75);
  max-width: 480px;
  width: 90%;
  height: auto;
}

#flag-profile-modal .dms-modal-content {
  max-height: 800px;
  overflow-y: auto;
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  #flag-profile-modal.dms-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    transform: none;
    width: 92vw;
    max-width: 92vw;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    border-radius: 6px;
    box-sizing: border-box;
  }

  #flag-profile-modal .dms-modal-content {
    width: 100%;
    box-sizing: border-box;
  }
}


/* Wrapper */
.aco-wrapper {
    background-color: #111111;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    padding: 20px;
    border-radius: 8px;
}

/* Top section layout */
.aco-top-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

/* Photo block */
.aco-photo {
    flex: 0 0 200px;
    text-align: center;
}
.aco-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Info block */
.aco-info {
    flex: 1;
    min-width: 250px;
}

/* Each field */
.aco-field {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

/* Buttons */
.aco-button-group {
    margin: 15px 0;
}
.aco-button-group button {
    background-color: #444444;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease;
}
.aco-button-group button:hover {
    background-color: #666666;
}

/* Links */
.aco-field a {
    color: #4cc9f0;
    text-decoration: none;
}
.aco-field a:hover {
    text-decoration: underline;
}

/* Responsive mobile adjustments */
@media (max-width: 768px) {
    .aco-top-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .aco-info {
        text-align: left;
        width: 100%;
    }
}


/* Wrapper for all sections */
.aco-section {
    margin-bottom: 40px !important;
    padding: 20px !important;
    background-color: #111111 !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Section headings */
.aco-section h3 {
    font-size: 20px;
    font-weight: 500;
    color: #ffe600;
    margin-bottom: 20px;
    margin-top: 0;
}

/* Gallery and Comment WRAPS are flex */
.aco-section.galleries .aco-items-wrap,
.aco-section.comments .aco-items-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Stories are direct block items now */
.aco-section.stories .aco-item {
    display: block;
    margin-bottom: 12px;
}

/* Comments styling (same as stories) */
.aco-section.comments .aco-item {
    flex: 1 1 100%;
}

/* Individual item default */
.aco-item {
    font-size: 15px;
    color: #ffffff;
}

/* Text links */
.aco-item a {
    color: #4cc9f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aco-item a:hover {
    color: white;
    text-decoration: underline;
}

/* Gallery image styling */
.aco-item img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 transparent;
    display: block;
}

/* Pop effect on hover */
.aco-item img:hover {
    transform: scale(1.5);
}

/* No-image fallback */
.aco-item .no-image {
    width: 150px;
    height: 200px;
    background: #333;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .aco-section.galleries .aco-items-wrap,
    .aco-section.comments .aco-items-wrap {
        flex-direction: column;
        align-items: center;
    }

    .aco-item {
        text-align: center;
        margin: 10px 0;
    }

    .aco-item img {
        margin: 0 auto;
    }
}


.dms-pass-form-wrapper {
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.dms-pass-form {
    display: flex;
    flex-direction: column;
}

.dms-pass-input-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.dms-pass-input-row label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 300;
    width: 160px;
    min-width: 160px;
    margin-right: 10px;
    font-family: 'Inter', sans-serif;
}

.dms-pass-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.dms-pass-input {
    flex: 1;
    padding: 6px 36px 6px 10px;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    height: 32px;
}

.dms-pass-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 26px;
    width: 26px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #aaa;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease-in-out;
}

.dms-pass-toggle:hover {
    color: #ffffff;
    background-color: #333;
}

.dms-pass-toggle:focus {
    outline: none;
    box-shadow: none;
}

.dms-pass-submit-row {
    margin-left: 170px;
}

.dms-pass-submit-btn {
    background-color: #5f0000;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    display: inline-block;
    margin: 20px 0 0 0;
}

.dms-pass-submit-btn:hover,
.dms-pass-submit-btn:focus {
    background-color: #a30000;
    color: white;
}

.dms-pass-audit-msg {
    color: #cccccc;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
}

.dms-pass-note {
    color: #888888;
    font-size: 12px;
    font-style: italic;
}

.dms-pass-logout-option {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 13px;
}

.dms-pass-success-msg,
.dms-pass-error-msg {
    font-size: 14px;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.dms-pass-success-msg {
    background-color: #003d00;
    color: #bbffbb;
    border: 1px solid #1d5e1d;
}

.dms-pass-error-msg {
    background-color: #3d0000;
    color: #ffbbbb;
    border: 1px solid #5e1d1d;
}

@media screen and (max-width: 600px) {
    .dms-pass-input-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dms-pass-input-row label {
        margin-bottom: 6px;
        width: auto;
    }

    .dms-pass-wrapper {
        width: 100%;
    }

    .dms-pass-toggle {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .dms-pass-input {
        width: 100%;
        padding-right: 40px;
    }

    .dms-pass-submit-row {
        margin-left: 0;
    }
}


/* ================================
   Global Form Styles
================================= */
#dms-story-upload-form {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    color: white;
    max-width: 100%;
    margin: auto;
    font-family: 'Inter', sans-serif;
}

.dms-form-group {
    margin-bottom: 50px;
}

.dms-form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.dms-form-group input[type="text"],
.dms-form-group textarea,
#story_series {
    width: 100%;
    padding: 10px;
    border: 1px solid #666;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-size: 15px;
}

/* TinyMCE editor */
#wp-story_content-wrap {
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

/* ================================
   Story Themes Grid (Checkboxes)
================================= */
.dms-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px 20px;
    margin-bottom: 10px;
}

.dms-themes-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: white;
}

.dms-themes-grid input[type="checkbox"] {
    transform: scale(1.2);
}

.dms-themes-note {
    margin-top: 25px;
    font-size: 13px;
    font-style: italic;
    color: #ccc;
}

.dms-content-rating-hidden {
    display: none !important;
}




/* ================================
   Buttons (Form + Modal Trigger)
================================= */
#dms-story-upload-form input[type="submit"],
#open-series-modal {
    background-color: #5f0000;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    margin-top: 10px;
}

/* Lock the hover state */
#open-series-modal:hover,
#open-series-modal:focus {
    background-color: #a30000;
    color: white;
}




/* ================================
   Modal Styles
================================= */
#series-modal {
    background: rgba(0, 0, 0, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#new-series-form {
    background: #222;
    padding: 25px;
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
    color: white;
}

#new-series-form label {
    display: block;
    margin-bottom: 8px;
}

#new-series-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #666;
    background: #fff;
    color: #000;
    margin-bottom: 15px;
}

.dms-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ================================
   Modal Button Styles
================================= */
.dms-create-series-btn {
    background: #198754;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.dms-create-series-btn:hover {
    background: #157347;
}

.dms-close-modal-btn {
    background: #5f0000;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.dms-close-modal-btn:hover {
    background: #a30000;
}

/* ================================
   Success Message
================================= */
.dms-form-success {
    background: #2e7d32;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 20px;
}
.dms-form-success {
    background: #2e7d32;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
}


.dms-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.dms-modal {
    background: #222;
    padding: 20px 25px;
    max-width: 600px;
    margin: 80px auto;
    border-radius: 8px;
    color: #fff;
    border: 1px solid #5f0000;
}

.dms-modal h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #fff;
}

.dms-tag-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px 16px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #111;
    border: 1px solid #5f0000;
    border-radius: 6px;
    margin-bottom: 20px;
}

.dms-tag-checkboxes label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
}

.dms-tag-checkboxes input[type="checkbox"] {
    accent-color: #5f0000;
    margin-right: 6px;
    transform: scale(1.05);
}

.dms-modal button {
    background: #5f0000;
    color: #fff;
    padding: 7px 14px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    transition: background 0.2s ease-in-out;
}

.dms-modal button:hover {
    background: #7f0000;
}

@media (max-width: 480px) {
    .dms-tag-checkboxes {
        grid-template-columns: repeat(1, 1fr);
    }
}
#open-block-tags-modal {
    background-color: #5f0000;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    margin-top: 10px;
}

/* Hover + focus states */
#open-block-tags-modal:hover,
#open-block-tags-modal:focus {
    background-color: #a30000;
    color: white;
}

/* BEGIN INLINE CODE */
/* BEGIN INLINE CODE */
/* BEGIN INLINE CODE */

/* Success message styling */
#dms-inline-blocked-tags-message {
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #0f0;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#dms-inline-blocked-tags-message:hover {
    text-shadow: 0 0 6px #00ff00;
}

/* Ensure Elementor wrapper doesn't center everything */
.elementor-shortcode {
    text-align: left !important;
}

/* Outer shortcode wrapper */
.dms-inline-blocked-tags {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

/* Form wrapper */
#dms-inline-block-tags-form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}

/* GRID layout: 4 columns on desktop */
.dms-tag-checkboxes-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px 24px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Individual checkbox label styling */
.dms-tag-checkboxes-grid label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    color: #fff !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}


/* Tablet: 2 columns */
@media (max-width: 900px) {
    .dms-tag-checkboxes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 500px) {
    .dms-tag-checkboxes-grid {
        grid-template-columns: 1fr !important;
    }
}


.dms-button {
    background-color: #5f0000;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Hover + focus */
.dms-button:hover,
.dms-button:focus {
    background-color: #a30000;
    color: white;
}


/* EMAIL CHANGE HISTORY STYLES */

.dms-email-history {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #dddddd;
}

.dms-email-history-row {
    margin-bottom: 8px;
}

.dms-email-history-date {
    color: #888888;
    font-weight: 300;
}

.dms-old-email {
    color: #ff6666; /* faded red */
    font-weight: 400;
}

.dms-new-email {
    color: #66ffcc; /* teal green */
    font-weight: 400;
}

.dms-email-history-empty {
    font-style: italic;
    color: #999999;
}
.dms-email-history-empty {
    font-style: italic;
    color: #ffffff;
    font-size: 13px;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}


/* Styles for Email Change Form */

.dms-email-form-wrapper {
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.dms-email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dms-email-field-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.dms-email-field-row label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 300;
    width: 160px;
    min-width: 160px;
    margin-right: 10px;
    font-family: 'Inter', sans-serif;
}

.dms-email-current {
    flex: 1;
    font-size: 13px;
    color: #cccccc;
    font-family: 'Inter', sans-serif;
}

.dms-email-pass-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.dms-email-pass-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.dms-email-field-row input[type="email"],
.dms-email-pass-field {
    flex: 1;
    padding: 6px 36px 6px 10px;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    height: 32px;
}

/* Autofill + focus override */
.dms-email-pass-field:-webkit-autofill,
.dms-email-pass-field:-webkit-autofill:focus,
.dms-email-pass-field:focus {
    background-color: #1a1a1a !important;
    -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
    box-shadow: 0 0 0 1000px #1a1a1a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Eyeball toggle */
.dms-email-toggle-pass {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    height: 26px;
    width: 26px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #aaa;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease-in-out;
}

.dms-email-toggle-pass:hover {
    color: #ffffff;
    background-color: #333;
}

.dms-email-submit-row {
    margin-left: 170px;
}

.dms-email-submit-btn {
    background-color: #5f0000;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    display: inline-block;
    margin: 20px 0 0 170px;
}

.dms-email-submit-btn:hover,
.dms-email-submit-btn:focus {
    background-color: #a30000;
    color: white;
}

.dms-email-success-msg,
.dms-email-error-msg {
    font-size: 14px;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.dms-email-success-msg {
    background-color: #003d00;
    color: #bbffbb;
    border: 1px solid #1d5e1d;
}

.dms-email-error-msg {
    background-color: #3d0000;
    color: #ffbbbb;
    border: 1px solid #5e1d1d;
}

/* Mobile tweaks */
@media screen and (max-width: 600px) {
    .dms-email-field-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dms-email-field-row label {
        margin-bottom: 6px;
        width: auto;
    }

    .dms-email-pass-wrapper {
        width: 100%;
    }

    .dms-email-pass-wrapper input {
        padding-right: 40px;
    }

    .dms-email-toggle-pass {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }

    .dms-email-submit-row {
        margin-left: 0;
    }

    .dms-email-submit-btn {
        margin-left: 0;
    }
}

/* User email Change Report Styles */

.dms-email-report {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin: 30px 0;
    color: #e0e0e0;
}

.dms-email-user {
    margin-bottom: 30px;
}

.dms-email-username {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #ffffff;
}

.dms-email-log-wrapper {
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
}

.dms-email-log-row {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 10px;
}

.dms-email-log-row.even {
    background-color: #1a1a1a;
}

.dms-email-log-row.odd {
    background-color: #2a2a2a;
}

.dms-email-field {
    min-width: 180px;
    margin-right: 25px;
    margin-bottom: 6px;
}


.dms-blocked-tags-report {
    margin: 30px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #e0e0e0;
    background-color: #111;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.dms-blocked-user {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.dms-blocked-username {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.dms-blocked-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dms-blocked-tag {
    background-color: #5f0000;
    color: #fff;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 20px;
    white-space: nowrap;
}

.dms-blocked-user-count {
    margin-bottom: 15px;
}

/*///////////////////////////*/
/* Pending Post Story Styles */
/*///////////////////////////*/

/*///////////////////////////*/
/* Pending Post Story Styles */
/*///////////////////////////*/

.dms-pending-admin-feed-user {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffe066;
    margin: 30px 0 10px 0;
    letter-spacing: .01em;
}

.dms-pending-admin-card {
    background: #181818;
    border-radius: 4px;
    box-shadow: 0 2px 14px #0003;
    margin-bottom: 18px;
    display: flex;
    align-items: stretch;
    position: relative;
    transition: box-shadow .14s;
    min-height: 56px;
    padding: 0; /* Remove direct padding! */
    overflow: visible;
}

.dms-pending-admin-card-bar {
    width: 8px;
    background: #ffe066;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    flex-shrink: 0;
}

.dms-pending-admin-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 28px 20px 24px;
    position: relative;
    z-index: 2;
}

.dms-pending-avatar.dms-pending-avatar-desktop {
    width: 56px;
    height: 56px;
    border-radius: 0;
    background: #232323;
    object-fit: cover;
    border: 2.5px solid #232323;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    box-shadow: 0 0 4px #0004;
    margin-top: 4px;
    display: block;
}

.dms-pending-avatar.dms-pending-avatar-mobile {
    width: 56px;
    height: 56px;
    border-radius: 0;
    background: #232323;
    object-fit: cover;
    border: 2.5px solid #232323;
    aspect-ratio: 1/1;
    box-shadow: 0 0 4px #0004;
    margin: 0 12px 8px 0;
    display: block;
    float: left;
}

.dms-pending-title-row {
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffe066;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dms-pending-date {
    font-size: 0.97rem;
    color: #b3b3a5;
    font-weight: 400;
    margin-bottom: 3px;
}

.dms-pending-series-row {
    font-size: 1rem;
    color: #ffc400;
    margin-bottom: 6px;
    font-weight: 400;
}

.dms-pending-excerpt {
    font-size: 1rem;
    color: #eeeeee;
    margin-bottom: 8px;
    line-height: 1.5;
    font-style: italic;
    clear: both;
}

.dms-pending-body {
    font-size: 1.02rem;
    color: #e6e6e6;
    margin-bottom: 10px;
    line-height: 1.52;
    background: #232323;
    border-radius: 5px;
    padding: 13px 15px;
    max-width: 700px;
    white-space: pre-line;
    clear: both;
}

.dms-pending-author {
    font-size: .98rem;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 500;
}

.dms-pending-moderate-btn {
    background: #5f0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 18px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background .14s;
    margin-top: 4px;
    margin-left: 2px;
    margin-bottom: 0;
    outline: none;
    box-shadow: 0 0.5px 0.5px #0006;
}

.dms-pending-moderate-btn:hover {
    background: #b00000;
}

/* Hide on mobile (show desktop only) */
.dms-hide-mobile { display: block; }
.dms-hide-desktop { display: none; }

@media (max-width: 700px) {
    .dms-hide-mobile { display: none !important; }
    .dms-hide-desktop { display: block !important; }
    .dms-pending-admin-card {
        flex-direction: column;
        min-height: 0;
    }
    .dms-pending-admin-card-bar {
        width: 100%;
        height: 8px;
        min-height: 8px;
        max-height: 8px;
        border-radius: 4px 4px 0 0;
    }
    .dms-pending-admin-card-content {
        padding: 12px 8px 10px 8px;
    }
    .dms-pending-avatar.dms-pending-avatar-mobile {
        float: left;
        margin: 0 12px 8px 0;
        display: block;
    }
    .dms-pending-avatar.dms-pending-avatar-desktop {
        display: none !important;
    }
    .dms-pending-title-row,
    .dms-pending-date,
    .dms-pending-series-row,
    .dms-pending-excerpt,
    .dms-pending-body,
    .dms-pending-author {
        clear: both;
    }
}


.um-416.um {
    max-width: 950px !important;
    width: 100% !important;
}
.um-415.um {
    max-width: 950px !important;
    width: 100% !important;
}


/* SITE ALERTS */

.dms-site-alert {
    padding: 10px 20px;
    text-align: center;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #000000;
    border-radius: 4px;
}

.profile-update-notice {
    background-color: #8B0000; /* Dark red */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 15px;
    line-height: 1.6;
}


/* Role Play Side Bar Styles Here */

.dms-stats-container,
.dms-member-badge,
.dms-size-badge,
.dms-member-username,
.dms-member-chat-row {
    all: unset;
    all: revert;
}

/* Roleplay Sidebar Base */
.dms-roleplay {
    width: 99%;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    margin: 0 auto;
    display: block;
}

.rp-stats-container {
    font-size: 13px;
    padding: 0;
    width: 99%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.rp-stats-heading {
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
    text-align: center;
}

.rp-badge-container {
    display: flex;
    flex-direction: column;
    width: 99%;
    max-width: 100%;
    gap: 8px;
    margin-bottom: 19px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.rp-badge {
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: transparent;
    text-transform: uppercase;
    line-height: 1.4;
    display: block;
    width: 98%;
    max-width: 340px;
    text-align: left;
    border: 1.5px solid;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.rp-badge.tiny { border-color: #007BFF; }
.rp-badge.giant { border-color: #D10000; }
.rp-badge.versatile { border-color: #8000A0; }

.rp-active-heading {
    font-size: 14px;
    font-weight: 600;
    color: #effd00;
    margin: 20px 0 10px;
    text-align: center;
}

.rp-active-list {
    margin-bottom: 10px;
    width: 99%;
    max-width: 99%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rp-member {
    display: flex;
    align-items: center;
    width: 99%;
    max-width: 350px;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    padding: 3px 9px 3px 4px;
    margin: 6px auto 8px auto;
    background: #161621;
    border: 2px solid;
    gap: 7px;
    min-height: 49px;
    justify-content: flex-start;
}

.rp-member.giant { border-color: #D10000; color: #ff8888; }
.rp-member.tiny { border-color: #007BFF; color: #aaddff; }
.rp-member.versatile { border-color: #8000A0; color: #f0caff; }

.rp-avatar {
    width: 45px;
    height: 45px;
    object-fit: cover;
    margin-right: 6px;
    border: 1px solid #313146;
    background: #232323;
    display: block;
}

.rp-member-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
}

.rp-username {
    font-size: 14px;
    font-weight: 600;
    color: #ffc400;
    cursor: pointer;
    position: relative;
    text-align: left;
}

.rp-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    z-index: 1002;
    background: #28283c;
    color: #fff;
    font-size: 13px;
    border-radius: 7px;
    padding: 11px 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.67);
    min-width: 220px;
    max-width: 330px;
    max-height: 200px;
    overflow-y: auto;
    white-space: normal;
}

.rp-chat-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 13px;
    width: 100%;
    justify-content: flex-start;
}

.rp-chat-icon {
    width: 17px;
    height: 17px;
    fill: #6be1ff;
    display: inline-block;
    vertical-align: middle;
}

.rp-chat-link {
    color: #6be1ff;
    text-decoration: underline;
    font-weight: 500;
}

.rp-room-btn {
    display: block;
    margin: 18px 0 12px 0;
    background: #5F0000;
    color: #1a1a1a;
    font-weight: 400;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    padding: 9px 0;
    width: 99%;
    max-width: 340px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.rp-room-btn:hover {
    background: #9F0000;
}

.rp-no-members {
    color: #aaa;
    text-align: center;
}



/* Role Play Compliance Update Form */

/* === Roleplay Compliance Form Styles === */
.dms-rp-compliance-form {
  background: #222222;
  border-radius: 18px;
  box-shadow: 0 7px 28px #000a;
  padding: 34px 26px 26px;
  max-width: 900px;
  margin: 35px auto;
  font-family: 'Inter', sans-serif;
}
.dms-rp-compliance-form h2 {
  font-size: 1.6rem;
  color: #effd00;
  font-weight: 500;
  margin-bottom: 18px;
  text-align: center;
}
.dms-rp-compliance-form label {
  display: block;
  color: #fff;
  font-size: 1.06rem;
  margin-bottom: 7px;
  font-weight: 400;
  margin-top: 18px;
}
.dms-rp-compliance-form select,
.dms-rp-compliance-form input[type="text"],
.dms-rp-compliance-form textarea {
  width: 100%;
  padding: 7px 11px;
  border-radius: 7px;
  border: 1px solid #353545;
  background: #515151;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}
.dms-rp-compliance-form textarea {
  min-height: 180px;
  max-height: 180px;
}
.dms-rp-compliance-form .dms-profile-img-preview {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 14px;
  margin-bottom: 8px;
  object-fit: cover;
  border: 2px solid #5f0000;
}
.dms-rp-compliance-form .dms-upload-btn {
  background: #5f0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 8px;
  margin-top: 4px;
  display: inline-block;
}
.dms-rp-compliance-form .dms-rp-msg {
  background: #515151;
  color: #ffc400;
  border-radius: 7px;
  padding: 13px 12px;
  margin-bottom: 14px;
  text-align: center;
  font-size: 1.05rem;
}
.dms-rp-compliance-form .dms-rp-err {
  color: #ff4444;
  margin-top: 10px;
  text-align: center;
  font-size: 1.04rem;
}
.dms-rp-compliance-form .dms-rp-success {
  color: #23D606;
  margin-top: 10px;
  text-align: center;
  font-size: 1.08rem;
}
.dms-rp-compliance-form button[type="submit"] {
  background: #23D606;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 32px;
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  display: block;
  width: 100%;
  margin-top: 20px;
}


/* === Divider Styling with Forced Top Spacing === */
.dms-divider {
  border: none;
  border-top: 2px solid #FFFFFF;
  margin-top: 32px !important;    /* Forces space above divider */
  margin-bottom: 26px !important; /* More space below divider */
  width: 100%;
  display: block;
  clear: both;
}


/* === "No file chosen" (file input) Styling === */
.dms-rp-compliance-form input[type="file"] {
  color: #ffc400;
  background: #191930;
  font-size: 1rem;
  padding: 7px 0 9px 0;
  border-radius: 7px;
  margin-bottom: 6px;
}

/* === Note Styling === */
.dms-photo-note {
  font-size: 13px;
  color: #fffed7;
  background: #5f0000;
  border-radius: 5px;
  padding: 7px 13px 8px 13px;
  margin-bottom: 15px;
  margin-top: 2px;
  display: inline-block;
  font-weight: 400;
}

/* Prevent Safari/Chrome iOS/macOS from darkening inputs/textareas/selects */
.dms-rp-compliance-form input,
.dms-rp-compliance-form textarea,
.dms-rp-compliance-form select {
  background-color: #515151 !important;
  color: #fff !important;
  /* For autofill */
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

/* Kill autofill yellow/blue in Chrome/Apple */
.dms-rp-compliance-form input:-webkit-autofill,
.dms-rp-compliance-form input:-webkit-autofill:focus,
.dms-rp-compliance-form textarea:-webkit-autofill,
.dms-rp-compliance-form select:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #515151 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s;
}

@media (max-width: 600px) {
  .dms-rp-compliance-form {
    padding: 16px 5vw 18px;
    max-width: 99vw;
    border-radius: 10px;
  }
  .dms-rp-compliance-form h2 {
    font-size: 1.2rem;
  }
}



.dms-update-profile-link a {
    display: inline-block;
    padding: 4px 10px;
    background-color: #5f0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.2s ease-in-out;
}

.dms-update-profile-link a:hover {
    background-color: #8b0000;
}


#cf-migration-form {
    margin: 0 auto;
    max-width: 600px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #e0e0e0;
    padding: 0;
    background: none !important;
    border: none !important;
}

/* Basic row */
.dms-email-log-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 6px 0;
    background: none !important;
    border: none !important;
}

/* Label cell */
.dms-email-label {
     margin-top: -5px; /* 👈 clean downward nudge */
	
    width: 200px;
    margin-right: 10px;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
}
.dms-email-label {
    display: flex;
    align-items: center;
    height: 30px;
}

.cf-full-width {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

/* Field cell */
.dms-email-input {
    flex: 1;
    min-width: 180px;
    margin-bottom: 6px;
}

.dms-email-input input[type="text"] {
    padding: 5px 8px;
    font-size: 14px;
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444444
;
    border-radius: 4px;
    width: 100%;
    height: 30px;
    box-sizing: border-box;
}

.dms-email-input button {
    background-color: #7a0000;
    color: #fff;
    padding: 6px 18px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    height: 32px;
}

.dms-email-input button:hover {
    background-color: #a00000;
}

/* Terms row full width */
.cf-full-width {
    width: 100%;
    margin-top: 10px;
}

#cf-migration-message {
    margin-top: 10px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
}

.cf-migration-success {
    background: #1a3c1a;
    color: #c5ffc9;
    border-left: 4px solid #43a047;
}

.cf-migration-error {
    background: #3c1a1a;
    color: #ffc5c5;
    border-left: 4px solid #d32f2f;
}

@media (max-width: 600px) {
    .dms-email-log-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dms-email-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .dms-email-input {
        width: 100%;
        margin-right: 0;
    }
}
#cf_username {
    background-color: #1A1A1A !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}
.cf-request-status-message {
    color: #eeeeee;
    background-color: #1a1a1a;
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 15px;
    border-left: 5px solid #444;
}

.cf-request-pending {
    border-color: #f0ad4e; /* amber */
}

.cf-request-complete {
    border-color: #5cb85c; /* green */
}

.cf-request-rejected {
    border-color: #d9534f; /* red */
}

.cf-request-status-message a {
    color: #ffd700;
    text-decoration: underline;
}

.cf-request-status-message a:hover {
    color: #ffffff;
}

.cf-contact-link {
    font-weight: 600;
    color: #ffa07a;
}


.cfm-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #e0e0e0;
    margin-top: 20px;
}

.cfm-table th {
    text-align: left;
    padding: 8px 10px;
    background-color: #222;
    color: #fff;
    font-weight: 500;
    border-bottom: 1px solid #444;
}

.cfm-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #333;
    vertical-align: top;
}

.cfm-table tr:nth-child(even) {
    background-color: #1a1a1a;
}

.cfm-table tr:nth-child(odd) {
    background-color: #2a2a2a;
}

.cfm-table a {
    color: #66ccff;
    text-decoration: none;
}

.cfm-table a:hover {
    text-decoration: underline;
}

.cfm-table select,
.cfm-table textarea {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 14px;
    padding: 4px 8px;
    width: 100%;
    box-sizing: border-box;
}

.cfm-table textarea {
    resize: vertical;
}

#cfm-submit-button,
#cf-admin-migration-form button[type="submit"] {
    background-color: #7a0000;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
}

#cfm-submit-button:hover,
#cf-admin-migration-form button[type="submit"]:hover {
    background-color: #a00000;
}

.cfm-update-confirmation {
    margin-top: 20px;
    padding: 12px 18px;
    background-color: #1a3c1a;
    color: #c5ffc9;
    border-left: 4px solid #43a047;
    border-radius: 4px;
    font-size: 14px;
}
#cf-admin-migration-form textarea {
    color: white;
    background-color: #111;
}


/* Coiled Fist Migration Summary Styling */
.cfm-summary {
    font-family: 'Inter', sans-serif;
    color: #E2E283; /* Matches the gold-ish yellow in the image */
    font-size: 15px;
    line-height: 1.6;
}

.cfm-summary .cfm-total-stories,
.cfm-summary .cfm-author-count {
    font-weight: bold;
    color: #D50000; /* Stand out in bright white */
}

.cfm-summary .cfm-user-list {
    margin-top: 10px;
    margin-bottom: 10px;
}

.cfm-summary a.cfm-username {
    color: #E2E283;
    text-decoration: none;
}

.cfm-summary a.cfm-username:hover {
    color: #E2E283;
    text-decoration: underline;
}


.dms-related-chapters-grid {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.dms-single-chapter-note {
    font-style: italic;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 10px;
}

.dms-chapter-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.dms-chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.chapter-box {
    background: #111;
    border: 1px solid #333;
    padding: 10px 12px;
    color: #ccc;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s, color 0.2s;
    display: block;
    word-break: break-word;
}

.chapter-box:hover {
    background-color: #1d1d1d;
    color: #fff;
}

.chapter-box.current {
    background: #222;
    color: #fff;
    font-weight: bold;
    border-color: #555;
}

.hidden-chapter {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}


.show-all-chapters-btn {
    margin-top: 15px;
    padding: 8px 14px;
    font-size: 13px;
    background: #111;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.show-all-chapters-btn:hover {
    background: #222;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .dms-chapter-grid {
        grid-template-columns: 1fr;
    }

    .chapter-box {
        font-size: 12px;
        padding: 8px 10px;
    }
}



    table.dms-ip-table {
        width: 100%;
        border-collapse: collapse;
        font-family: sans-serif;
        font-size: 14px;
        margin-top: 20px;
        color: #fff;
    }
    table.dms-ip-table th,
    table.dms-ip-table td {
        border: 1px solid #444;
        padding: 8px;
        vertical-align: top;
    }
    table.dms-ip-table th {
        background: #222;
        color: #fff;
    }
    table.dms-ip-table tr:nth-child(even) {
        background: #111;
    }
    table.dms-ip-table tr:nth-child(odd) {
        background: #000;
    }
    table.dms-ip-table a {
        color: #00bfff;
        text-decoration: none;
    }



/* Size Preferences */
.dms-size-preference {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 16px;
    color: #FFFFA0;
    line-height: 1.6;
    text-align: left;
margin-bottom: 15px;
}

.dms-size-preference .match {
    font-weight: 400;
    color: #FFFFA0;
    position: relative;
    padding-right: 14px;
    white-space: nowrap;
}

.dms-size-preference .match::after {
    content: "★";
    color: #FFD700;
    font-size: 12px;
    position: absolute;
    right: 0;
    top: 0;
}

/* Optional tooltip on hover (can be disabled later) */
.dms-size-preference .match:hover::before {
    content: "This matches your profile";
    position: absolute;
    bottom: 125%;
    left: 0;
    background-color: #222;
    color: #fff;
    padding: 4px 6px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 10;
    opacity: 1;
}

.dms-size-preference .no-match {
    font-weight: 200;
    color: #FFFFA0;
    white-space: nowrap;
}

/* Fantasy Themes */
.fantasy-heading {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FF8C00;
    margin-bottom: 5px;
}

.fantasy-tags {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 200;
    text-align: left;
    line-height: 1.6;
    margin-bottom: 10px;
}

.fantasy-tag-link {
    text-decoration: none;
    position: relative;
    padding-right: 16px;
    display: inline-block;
    margin-right: 10px;
    white-space: nowrap;
}




/*
 * CSS for Fantasy Tag "Pills"
 * Add this to your external stylesheet.
 */

/* This is the container for the tags */
.dms-fantasy-block .fantasy-tags {
    /* Adds a little space above the tags */
    margin-top: 5px;
}

/* This styles each tag link as a "pill" */
.fantasy-tag-link {
    display: inline-block;     /* Allows for padding and margins */
    padding: 4px 6px;         /* Vertical and horizontal spacing inside the pill */
    margin: 4px;               /* Space *between* the pills */
    border: 1px solid #555;    /* A neutral dark-mode border */
    border-radius: 4px;       /* This makes it pill-shaped */
    text-decoration: none;     /* Removes the default link underline */
    font-size: 0.9em;          /* Makes text slightly smaller */
    color: #ccc;               /* Light-grey text color */
    background-color: #2a2a2a; /* A slight background, darker than the main bg */
    transition: all 0.2s ease; /* Smooth hover effect */
}

/* Hover effect for the pill */
.fantasy-tag-link:hover {
    background-color: #444;
    border-color: #888;
    color: #fff;
}

/* Matching fantasy tag */
.fantasy-tag-link.match {
    font-weight: 200 !important;
    color: #FFFFA0 !important;
}

/* Star */
.fantasy-tag-link.match::after {
    content: "★";
    color: #FFD700;
    font-size: 12px;
    position: absolute;
    right: 0;
    top: 0;
}

/* Tooltip */
.fantasy-tag-link.match:hover::before {
    content: "This matches your profile";
    position: absolute;
    bottom: 125%;
    left: 0;
    background-color: #222;
    color: #fff;
    padding: 4px 6px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 10;
}

/* Non-matching fantasy tag */
.fantasy-tag-link.no-match {
    font-weight: 200 !important;
    color: #FFFFA0 !important;
}

/* Kill the pipes */
.fantasy-tags .pipe {
    display: none;
}

.match-alert {
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 300;
    color: #FFFFFF;
}

/* Size badge styles */
.giant-badge,
.tiny-badge,
.versatile-badge {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 200;
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid;
    display: inline-block;
    background-color: transparent;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Border colors */
.giant-badge {
    border-color: #D10000;
}

.tiny-badge {
    border-color: #007BFF;
}

.versatile-badge {
    border-color: #8000A0;
}



/* Profile Match Hint Line Styles */
.match-hint {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 200;
    color: #CCCCCC;
    margin-top: 6px;
    line-height: 1.4;
	margin-bottom: 15px;
}

.match-hint-label {
    font-weight: 300;
    color: #FFCC00;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-hint-text {
    font-weight: 200;
    color: #AAAAAA;
}
/* Profile Match Hint Line Styles */

/* Profile Style Sheet Section all sections */
.profile-section {
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.profile-heading {
    font-size: 30px;
    font-weight: 300;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.profile-subheading {
    font-size: 20px;
    font-weight: 300;
    color: #FFA500;
    margin: 20px 0 3px; /* 3px bottom margin to tighten spacing */
}

.profile-field {
    margin-bottom: 5px;
}

.profile-label {
    font-size: 16px;
    font-weight: 200;
    color: #FF8C00;
    display: inline;
}

.profile-value {
    font-size: 16px;
    font-weight: 200;
    color: #FFFFFF;
}

.profile-divider {
    border-bottom: 1px solid #5F0000;
    margin: 15px 0;
}

.profile-top-divider {
    border-bottom: 1px solid #5F0000;
    margin-top: 25px;
    margin-bottom: 30px;
}

.profile-tag-phrase {
    font-size: 16px;
    font-weight: 200;
font-style: italic;
    color: #ffff88;
    text-align: center;
}


.profile-tag-phrase,
.profile-title-wrapper,
.profile-location-wrapper,
.profile-country-wrapper {
    text-align: center;
    margin-bottom: 4px;
}

.profile-tag-phrase,
.profile-title-label,
.profile-title-value,
.profile-location-label,
.profile-location-value,
.profile-country-label,
.profile-country-value {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 15px;
    display: inline-block;
}

.profile-tag-phrase {
    font-size: 16px;
    color: #ffffff;
    display: block;
}

.profile-title-label,
.profile-location-label,
.profile-country-label {
    color: #cc0000;
}

.profile-title-value,
.profile-location-value,
.profile-country-value {
    color: #ffff88;
}



.profile-margin {
    margin-bottom: 30px;
}

/* Roleplay Special Styling */
.profile-roleplay-answer {
    padding: 1px 3px;
    border-radius: 4px;
    font-weight: 300;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid;
    margin-left: 8px;
}

.roleplay-yes {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #00cc00;
}

.roleplay-no {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #cc0000;
}



/* update buttons */

.dms-update-personal-button {
    padding: 1px 3px;
    border-radius: 4px;
	border-color: #5f0000;
    font-weight: 300;
    font-size: 12px;
    font-color: white;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid;
    margin-left: 0px;
    margin-bottom: 20px;
    margin-top: 10px

}


.dms-update-profile-macro-button {
padding: 1px 3px;
border-radius: 4px;
font-weight: 300;
font-size: 12px;
font-family: 'Inter', sans-serif;
text-transform: uppercase;
display: inline-block;
border: 2px solid #5f0000;
color: #ffffff;
margin-bottom: 20px;

}

.dms-update-links-button {
padding: 1px 3px;
border-radius: 4px;
font-weight: 300;
font-size: 12px;
font-family: 'Inter', sans-serif;
text-transform: uppercase;
display: inline-block;
border: 2px solid #5f0000;
color: #ffffff;
margin-bottom: 20px;
}

.dms-update-personal-button {
padding: 1px 3px;
border-radius: 4px;
font-weight: 300;
font-size: 12px;
font-family: 'Inter', sans-serif;
text-transform: uppercase;
display: inline-block;
border: 2px solid #5f0000;
color: #ffffff;
margin-bottom: 20px;

}

/* End Profile Syle Sheet all sections  */




    /* styles for links section */

.profile-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 650px;
    width: 100%;
    margin: 10px auto 0 auto; /* centers the grid */
}



.dms-link-button {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 200;
    color: #ffff88;
    border: 1px solid #ffff88;
    padding: 6px 8px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
}

.dms-link-button:hover {
    background-color: #1a1a1a; /* just a tad lighter than #111111 */
    color: #ffff88; /* stay consistent */
}



.profile-section {
    margin-bottom: 25px;
}

.profile-heading {
    font-size: 22px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 10px;
}


/* Role Play Style for fag option */



/* end Role play for flag option */



/* styles for links update modal */

    .dms-links-modal {
        position: fixed;
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        background: #111;
        padding: 20px;
        border: 1px solid #888;
        z-index: 9999;
        max-width: 500px;
        width: 90%;
        color: white;
        border-radius: 8px;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 0 12px rgba(0,0,0,0.8);
    }


    .dms-macro-modal {
        position: fixed;
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        background: #111;
        padding: 20px;
        border: 1px solid #888;
        z-index: 9999;
        max-width: 500px;
        width: 90%;
        color: white;
        border-radius: 8px;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 0 12px rgba(0,0,0,0.8);
    }


    .dms-links-modal h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .dms-links-modal input[type="text"],
    .dms-links-modal input[type="url"] {
        width: 100%;
        padding: 6px 10px;
        margin-bottom: 12px;
        background: #222;
        color: white !important;
        border: 1px solid #555;
        border-radius: 4px;
        font-size: 14px;
        height: 34px;
        -webkit-text-fill-color: white !important; /* iOS fix */
    }

    .dms-links-modal input::placeholder {
        color: #bbb;
    }

    .dms-modal-controls {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .dms-modal-controls button {
        padding: 8px 14px;
        border: none;
        border-radius: 4px;
        background: #444;
        color: white;
        cursor: pointer;
        font-size: 14px;
        flex-grow: 1;
        text-align: center;
    }

.dms-links-modal select,
.dms-links-modal textarea {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 12px;
    background: #222;
    color: white !important;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 14px;
    -webkit-text-fill-color: white !important; /* iOS fix */
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    height: 34px;
}

.dms-links-modal textarea {
    height: auto;
    min-height: 60px;
    resize: vertical;
}

.dms-links-modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    font-style: italic;
    color: #ccc;
}


.dms-macro-modal select,
.dms-macro-modal input[type="text"],
.dms-macro-modal textarea {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 12px;
    background: #222;
    color: white !important;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    -webkit-text-fill-color: white !important; /* iOS fix */
}

.dms-macro-modal label {
    display: block;
    margin-bottom: 4px;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    font-style: italic;
    color: #ccc;
}

.dms-macro-modal textarea {
    min-height: 90px;
    resize: vertical;
}




/* Styles for Modal Check Boxes Grid */
.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px 20px;
    margin-top: 10px;
}

.taxonomy-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    background: rgba(255,255,255,0.05);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.taxonomy-item input[type="checkbox"] {
    accent-color: #5f0000;
    width: 16px;
    height: 16px;
}

.taxonomy-item input[type="checkbox"]:checked + span,
.taxonomy-item input[type="checkbox"]:checked ~ span {
    color: #5f0000;
    font-weight: 500;
}

/* END Styles for Modal Check Boxes Grid */

    @media screen and (max-width: 600px) {
        .dms-links-modal h3 {
            font-size: 16px;
        }

        .dms-links-modal {
            max-width: 95%;
            padding: 15px;
            top: 2%;
        }
    }
    

/* Profile Photo Thumbnails under profile photo section */

.primary-gallery {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-items: center;
}

.primary-gallery li {
    margin: 0;
}

.primary-gallery-thumbnail {
    max-width: 90px;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}


/* tablet */

@media (min-width: 601px) and (max-width: 1024px) {
    .primary-gallery {
        grid-template-columns: repeat(6, 1fr);
    }

    .primary-gallery-thumbnail {
        max-width: 85px;
    }
}


/* Mobile (3 per row, 65% smaller thumbnails) */
@media (max-width: 600px) {
    .primary-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .primary-gallery-thumbnail {
        max-width: 65px;
    }
}

/* END Profile Photo Thumbnails section */


/* STYELS FOR PROFILE PHOTO UPDATE SECTION */


/* === CHANGE PROFILE BUTTON === */

.dms-profile-photo-btn {
    padding: 1px 3px;
    border-radius: 4px;
    font-weight: 300;
    font-size: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    display: block;
    margin: 12px auto 20px auto;
    border: 2px solid #5f0000;
    /* Optionally: add a little width for bigger click area */
    min-width: 120px;
    letter-spacing: 0.03em;
    transition: background 0.17s, color 0.15s, border-color 0.15s;
    background: #222;
    cursor: pointer;
}
.dms-profile-photo-btn:hover {
    background: #5f0000;
    color: #fff;
    border-color: #ffe671;
}


/* === CENTER AND SIZE PROFILE IMAGE (BEAST UPGRADE) === */
.dms-profile-photo-current {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.dms-profile-photo-current img.dms-profile-photo-img {
    width: 480px;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* === MODAL OVERLAY === */
.dms-profile-photo-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.77);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 0;
}

/* === MODAL WINDOW === */
.dms-profile-photo-modal-content {
    background: #191919;
    color: #fff;
    border-radius: 18px;
    max-width: 900px;
    width: 95vw;
    max-height: 900px;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 44px rgba(0,0,0,0.65);
    margin: 0 auto;
    padding: 46px 44px 32px 44px;
    overflow-y: auto;
}

/* === MODAL CLOSE BUTTON === */
.dms-profile-photo-modal-close {
    position: absolute;
    top: 16px; 
    right: 20px;
    background: none;
    color: #FFFFFF;
    font-size: 2.3em;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    font-weight: 700;
    transition: color 0.16s;
}
.dms-profile-photo-modal-close:hover {
    color: #fff;
    background: #5f0000;
    border-radius: 50%;
}

/* === MODAL TITLE === */
.dms-profile-photo-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 26px 0;
    text-align: left;
    letter-spacing: 0.02em;
}

/* === GRID CONTAINER === */
.dms-profile-photo-grid {
    display: grid;
    grid-template-columns: repeat(6, 111px);
    gap: 18px;
    justify-content: center;
    align-items: start;
    margin-bottom: 26px;
    width: 100%;
    overflow-x: auto;
}

/* === INDIVIDUAL OPTION LABEL === */
.dms-profile-photo-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    padding: 2px 0 10px 0;
    transition: filter 0.16s, box-shadow 0.15s;
    position: relative;
}
.dms-profile-photo-option input[type="radio"] {
    display: none; /* Hide radio itself */
}

/* === PHOTO IMAGE === */
.dms-profile-photo-choice {
    width: 145px;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.19);
    background: #222;
    transition: outline 0.16s, box-shadow 0.16s, filter 0.12s;
    outline: 2px solid transparent;
    display: block;
    cursor: pointer;
}
.dms-profile-photo-option input[type="radio"]:checked + .dms-profile-photo-choice {
    outline: 3px solid #ffe671;
    box-shadow: 0 0 0 4px #5f000080;
    filter: brightness(1.08);
}
.dms-profile-photo-option:hover .dms-profile-photo-choice,
.dms-profile-photo-option:focus-within .dms-profile-photo-choice {
    filter: brightness(1.09) saturate(1.11);
    outline: 2.5px solid #ffe671;
}

/* === SELECTOR VISUALLY HIDDEN === */
.dms-profile-photo-option input[type="radio"] {
    display: none;
}

/* === CLICK ENTIRE PHOTO TO SELECT === */
.dms-profile-photo-option {
    cursor: pointer;
}
.dms-profile-photo-choice:active {
    outline: 3px solid #ffe671;
}

/* === GRID RESPONSIVE === */
@media (max-width: 1100px) {
    .dms-profile-photo-grid {
        grid-template-columns: repeat(4, 125px);
        gap: 14px;
    }
    .dms-profile-photo-choice {
        width: 125px;
    }
}
@media (max-width: 700px) {
    .dms-profile-photo-modal-content {
        max-width: 98vw;
        padding: 22px 8px 22px 8px;
        max-height: 92vh;
    }
    .dms-profile-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .dms-profile-photo-choice {
        width: 99px;
    }
}

/* === INSTRUCTIONS TEXT AT BOTTOM === */
.dms-profile-photo-modal-instructions {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    background: #232323;
    border-radius: 9px;
    margin: 24px 0 4px 0;
    padding: 12px 20px;
    text-align: left;
    font-weight: 200;
    line-height: 1.22;
}

/* end PROFILE PHOTO UPDATE SECTION STYLES */


.dms-profile-header {
    margin-bottom: 20px;
}

.dms-profile-name {
    font-size: 24px;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    color: #fff;
    margin-bottom: 8px;
}

.dms-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500; /* Make it bolder */
    color: #ffffff;   /* Solid white text */
    margin-bottom: 12px;
}

.dms-meta-item {
    display: flex;
    align-items: center;
    gap: 6px; /* use 6px–8px for just enough space between icon and label */
}


.dms-profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dms-profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.dms-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px;
    background-color: transparent !important;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dms-nav-button:hover {
    background-color: #5f0000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.dms-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}


@media only screen and (max-width: 768px) {
    .dms-profile-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        line-height: 1.2 !important;
        margin-bottom: 10px;
    }

    .dms-meta-item {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
}

.dms-profile-update-link a {
    display: inline-block;
    padding: 4px 2px;
    background-color: #5f0000;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.dms-profile-version-message {
font: inter, sans-serif;    
font-size: 14px;
    margin-top: 8px;
    color: #dddddd;
}

.version-number {
    font-weight: 300;
    color: #ff0000;
}


.author-header-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.author-header-left {
    flex: 0 0 auto;
    order: 2;
}

.author-header-left img.author-profile-image {
    width: 170px;
    height: 170px;
    border-radius: 100%;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin-bottom: 10px;
}

/* Mobile-only photo hidden by default */
.author-photo-mobile {
    display: none;
}

.author-header-right {
    flex: 1 1 0%;
    order: 1;
}

.author-header-name {
    font-size: 22px;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    margin-bottom: 10px;
}

.author-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
}

.author-meta-item {
    display: flex;
    align-items: center;
    gap: 6px; /* use 6px–8px for just enough space between icon and label */

}

.author-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.author-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px;
    background-color: transparent !important;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.author-nav-button:hover {
    background-color: #5f0000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.author-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* 📱 Mobile view: Title → Mobile Photo → Meta/Menu */
@media only screen and (max-width: 768px) {
    .author-header-wrapper {
        flex-direction: column;
    }

    .author-header-name {
        order: 1;
    }

    .author-header-left {
        display: none !important; /* Hides desktop photo container */
    }

    .author-photo-mobile {
        display: block !important;
        margin: 12px auto;
        text-align: center;
    }

    .author-photo-mobile img {
        display: block;
        width: 170px;
        height: 170px;
        border-radius: 100%;
        object-fit: cover;
        border: 2px solid #ffffff;
        margin: 0 auto 10px auto;
    }

    .author-meta-row {
        order: 3;
        flex-direction: column;
        gap: 6px;
    }

    .author-nav-row {
        order: 4;
        flex-direction: column;
        gap: 8px;
    }
}


.custom-whos-online {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
}

.custom-whos-online h3 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.user-count {
    font-size: 14px;
    color: #bbbbbb;
    margin-bottom: 10px;
    font-style: italic;
}

.whos-online-user {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
}

.username {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    line-height: 1.2;
    white-space: nowrap;
}

/* Avatar container with status ring */
.avatar-container {
    position: relative;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border: 2px solid #888888;
    border-radius: 50%;
    box-sizing: border-box;
    overflow: visible; /* 🔥 Restore the hover preview visibility */
}


/* Status ring colors */
.avatar-online {
    border-color: #0CF000 !important;
}

.avatar-idle {
    border-color: #EFFD00 !important;
}

.avatar-offline {
    border-color: #555555 !important;
}

/* Avatar image fits inside the ring cleanly */
.user-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block;
}




/* Optional user status text below username */
.status-text {
    font-size: 10px;
    color: #fff !important;
    font-weight: normal;
    margin-top: 2px;
    word-wrap: break-word;
    max-width: 100%;
}

/* Hover image preview */
.avatar-hover-preview {
    display: none;
    position: absolute;
    top: -10px;
    left: 50px;
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    z-index: 9999;
}

.avatar-container:hover .avatar-hover-preview {
    display: block;
}

/* Status badge in image pop-out */
.status-badge {
    display: inline-block;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #000000;
    border-radius: 4px;
    padding: 1px 4px;
    line-height: 1.2;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Background color for badges */
.status-online {
    background-color: #0CF000;
}


.status-badge.status-idle {
    background-color: #EFFD00 !important;
}


.status-offline {
    background-color: #777777;
}


.site-admin-label {
    font-size: 9px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 200 !important;
    color: #fff !important;
    background: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 2px 0 0 0 !important;
    border-radius: 0 !important;
    letter-spacing: 0.3px !important;
}

/* --- Improved Left Color Bar for Size Identity (with spacing and radius) --- */
.custom-whos-online .whos-online-user.size-tiny,
.custom-whos-online .whos-online-user.size-giant,
.custom-whos-online .whos-online-user.size-versatile {
    border-left: 6px solid;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding-left: 12px !important;
}

.custom-whos-online .whos-online-user.size-tiny {
    border-left-color: #2196f3;
}
.custom-whos-online .whos-online-user.size-giant {
    border-left-color: #b20000;
}
.custom-whos-online .whos-online-user.size-versatile {
    border-left-color: #7c3aed; /* More purple */
}

/* --- Update legend dot color for versatile --- */
.legend-dot.versatile { background: #7c3aed; }

.size-legend-key {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
    font-size: 14px;
    font-family: Inter, sans-serif;
    font-weight: 300;
}
.legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
    border: 1.7px solid #202124;
    box-shadow: 0 1px 2px #0004;
}
.legend-dot.tiny { background: #2196f3; }
.legend-dot.giant { background: #b20000; }
.legend-dot.versatile { background: #7c3aed; }


.size-legend-label {
    font-family: Inter,sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffc400;
    margin-bottom: 1px; /* Tighter! */
    letter-spacing: 0.6px;
}
.size-legend-key {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
    font-size: 13px;
    font-family: Inter, sans-serif;
    font-weight: 300;
}
.legend-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    border: 1.6px solid #232323;
    box-shadow: 0 1px 2px #0004;
}
.legend-dot.tiny { background: #2196f3; }
.legend-dot.giant { background: #b20000; }
.legend-dot.versatile { background: #7c3aed; }

.legend-label {
    font-size: 14px;
    color: #ededed;
    margin-right: 10px;
    margin-bottom: 0;
    margin-left: -5px; /* snugs label toward the dot */
}

.dms-story-header {
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 0px solid #444;
}

.story-header-flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.story-header-content {
    flex: 1;
    min-width: 200px;
}

.story-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    color: #F8F861 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.dms-story-header .dms-profile-nav {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.story-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 12px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-item b {
    color: #fff;
    font-weight: 500;
}

.story-tags {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 12px;
}

.story-excerpt {
    font-size: 15px;
    color: #ffff99;
    font-style: italic;
    margin-top: 8px;
}

/* Like Button */
.dms-profile-nav .like-button {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #880000;
    color: #fff;
    border-radius: 4px;
    height: 36px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dms-profile-nav .like-button.liked {
    background-color: #006600;
    color: #fff;
}

/* Desktop Avatar Block */
.story-avatar-desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 70px;
    margin-top: 4px;
}

.story-avatar-desktop .story-avatar-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

.story-avatar-desktop .author-name {
    font-size: 14px;
    color: #fff;
    margin-top: 4px;
    text-align: center;
}

/* Mobile Avatar Below Title */
.story-avatar-mobile {
    display: none;
}

.story-avatar-mobile .story-avatar-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.story-avatar-mobile .author-name {
    font-size: 14px;
    color: #fff;
    margin-left: 8px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .story-header-flex {
        flex-direction: column;
    }

    .story-title {
        font-size: 18px !important;
    }

    .story-avatar-desktop {
        display: none !important;
    }

    .story-avatar-mobile {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
    }
}


.dms-publishing-status {
    padding: 14px 20px;
    border-radius: 10px;
    background: #181818;
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.03em;
    box-shadow: 0 1px 6px #0003;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 200;
    line-height: 1.55;
}
.dms-publishing-status strong {
    color: #FFD600;
    font-weight: 400;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.dms-publishing-status em {
    color: #FFD600;
    font-style: normal;
    font-weight: 300;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.dms-publishing-status.dms-fast-track {
    border-left: 6px solid #5ddd00;
}
.dms-publishing-status.dms-moderated {
    border-left: 6px solid #FFD600;
}



/* Recent Post Styles */

.dms-forum-feed {
    font-family: 'Inter', sans-serif;
    color: #fff;
    max-width: 420px;
    margin: 0 auto;
}

.dms-post {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 12px 14px;     /* Added padding for breathing room */
    background: #1b1b1b;    /* Single background, tweak as needed */
}


.dms-post:nth-child(odd) {
    background: #181818;
}
.dms-post:nth-child(even) {
    background: #222;
}

/* Remove border-bottom since we're using gaps */
.dms-post:not(:last-child) {
    border-bottom: none;
}


.dms-avatar {
    min-width: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dms-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #242424;
    background: #111;
    display: block;
}

.dms-content {
    flex: 1 1 0;
    min-width: 0;
}

.dms-title {
    font-size: 14px;            /* Just 2px bigger than excerpt */
    font-weight: 600;
    color: #F1E359;
    margin-bottom: 1px;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dms-title a {
    color: #F1E359;
    text-decoration: none !important;   /* No underline, ever */
    font-size: inherit;
}

.dms-new {
    background: #C00E0E;
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.67em;
    margin-left: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    vertical-align: middle;
    margin-top: 2px;
}

.dms-meta {
    font-size: 13px;
    color: #b8b8b8;
    margin-bottom: 2px;
    margin-top: 1px;
}

.dms-meta a {
    color: #FB0A0A;
    text-decoration: none;
    font-weight: 500;
}

.dms-excerpt {
    font-size: 14px;
    color: #ededed;
    font-weight: 300;
    margin-top: 2px;
    line-height: 1.42;
    word-break: break-word;
}

/* Optional: Remove excess space at bottom of last post */
.dms-forum-feed .dms-post:last-child {
    border-bottom: none;
    padding-bottom: 15px;
}



/* recent polls styles here */

/* Polls widget extra tweaks */
.dms-poll-feed {
    /* Already inherits from forum feed, but tweak if needed */
    max-width: 420px;
}
.dms-poll-show-more-btn {
    background: #242424 !important;
    color: #F1E359 !important;
    font-size: 13px !important;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    margin: 16px 0 0 0;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    transition: background 0.16s;
}
.dms-poll-show-more-btn:hover {
    background: #343434 !important;
}
/* Responsive tweak for mobile */
@media (max-width:600px) {
    .dms-poll-feed { max-width: 99vw; }
}


/* ==== Add Link Form Styles (Tweaked) ==== */

.alf-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #181818;
    padding: 30px 28px 26px 28px;
    border-radius: 12px;
    box-shadow: 0 1px 14px #0002;
}

.alf-field-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.alf-label {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    text-align: left;
    max-width: 100%;
}

.alf-input,
.alf-textarea {
    width: 60%;
    max-width: 500px;
    min-width: 220px;
    margin: 5px auto 5px auto;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #999;
    background: #252525;
    color: #fff;
    font-size: 1rem;
    display: block;
    box-sizing: border-box;
}

/* Full width only for the dropdown */
select.alf-input {
    width: 100%;
    min-width: unset;
    max-width: unset;
}

/* Always white text for autofill fields (fix for Apple/iOS devices) */
.alf-input:-webkit-autofill,
.alf-input:-webkit-autofill:focus,
.alf-input:-webkit-autofill:hover,
.alf-input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
    background-color: #252525 !important;
    color: #fff !important;
}

/* Remove yellow bg in Chrome/iOS for autofill */
input.alf-input:-webkit-autofill,
textarea.alf-input:-webkit-autofill {
    box-shadow: 0 0 0 1000px #252525 inset !important;
    -webkit-box-shadow: 0 0 0 1000px #252525 inset !important;
}

.alf-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.alf-note {
    font-size: 13px;
    color: #bdbdbd;
    margin-bottom: 6px;
    margin-top: -2px;
    width: 60%;
    max-width: 500px;
    min-width: 220px;
    text-align: left;
}

.alf-submit {
    background: #5f0000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 17px;
    padding: 9px 25px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alf-submit:hover,
.alf-submit:focus {
    background: #b20000;
}

.alf-notice {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
}

.alf-success {
    color: #006a24;
    background: #eaffea;
    border: 1px solid #98e2ad;
}

.alf-error {
    color: #b20000;
    background: #fff2f2;
    border: 1px solid #eeb0b0;
}

/* Responsive: 100% width on mobile/small screens */
@media (max-width: 600px) {
    .alf-input,
    .alf-textarea,
    .alf-note {
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
    }
}
/* Align checkbox help text directly under label */
.alf-checkbox .alf-note {
    width: auto !important;
    max-width: 100% !important;
    min-width: unset !important;
    margin-left: 0 !important;
    text-align: left !important;
    padding-left: 2px;
}

/* White text inside inputs and textareas */
.alf-input,
.alf-textarea,
.alf-input:focus,
.alf-textarea:focus {
    color: #fff !important;
    background: #252525 !important;
}

/* White placeholder text in all browsers */
.alf-input::placeholder,
.alf-textarea::placeholder {
    color: #fff !important;
    opacity: 1 !important;
}
.alf-input:-ms-input-placeholder,
.alf-textarea:-ms-input-placeholder {
    color: #fff !important;
}
.alf-input::-ms-input-placeholder,
.alf-textarea::-ms-input-placeholder {
    color: #fff !important;
}

/* Extra fix for Apple/iOS and Chrome autofill */
.alf-input:-webkit-autofill,
.alf-textarea:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    box-shadow: 0 0 0 1000px #252525 inset !important;
    background: #252525 !important;
    color: #fff !important;
}
/* Align all .alf-checkbox groups to the left, not center */
.alf-checkbox {
    align-items: flex-start !important;
}

/* Extra: Make the checkbox label and help note flow left and under each other */
.alf-checkbox .alf-label {
    display: flex;
    align-items: center;
    width: auto;
}

.alf-checkbox .alf-note {
    margin-left: 28px; /* aligns with the checkbox, adjust if needed */
    width: auto !important;
    text-align: left !important;
    padding-left: 0 !important;
}


/* Gallery Header Styles */
.dms-gallery-header { 
    max-width:650px; 
    margin:0 auto 16px; 
    color:#fff; 
    font-family:Inter,sans-serif; 
    font-size:16px; 
    text-align:center; /* Center everything inside */
}
.dms-gallery-meta-row { display:flex; align-items:center; margin-bottom:10px; gap:14px; }
.dms-gallery-meta-avatar img { width:30px; height:30px; border-radius:50%; object-fit:cover; border:1.5px solid #444;}
.dms-gallery-meta-info { display:flex; flex-wrap:wrap; align-items:center; gap:11px; }
.dms-gallery-meta-username a { font-weight:600; color:#eee; text-decoration:none; }
.dms-gallery-meta-date, .dms-gallery-meta-time { color:#bbb; }
.dms-gallery-meta-comments { color:#aaa; }
.dms-gallery-meta-folder { background:#181818; color:#ffe066; border-radius:10px; padding:2px 9px; font-size:14px; margin-left:6px; }
.dms-gallery-action-row { 
    margin:10px 0 2px 0; 
    display:inline-flex;   /* Center buttons inline */
    gap:14px; 
    justify-content:center; 
}
/* Always center the gallery views text */
.dms-gallery-views { 
    margin-top:8px; 
    color:#ccc; 
    font-size:15px; 
    text-align:center; 
    width:100%;          /* Ensures it stretches and centers inside parent */
    display:block;
}

.dms-eye-icon { margin-right:6px; font-size:1.2em; vertical-align:middle; }

/* Button tweaks: you can add more here for the .dms-like-btn and .dms-bookmark-btn */
.dms-like-btn, .dms-bookmark-btn {
    background: #222; border: 1px solid #555; color: #fff; border-radius: 7px;
    padding: 5px 14px; font-size: 15px; cursor: pointer; margin-right: 6px;
    display: inline-flex; align-items: center; gap: 5px;
    transition: background 0.17s, border 0.17s;
}
.dms-like-btn.liked, .dms-bookmark-btn.bookmarked { border-color: #ffe066; background: #191919; }
.dms-like-btn:hover, .dms-bookmark-btn:hover { background: #333; border-color: #ffe066; }
.dms-icon { display: inline-block; vertical-align: middle; }

Replace your responsive block and views rule with this:

/* Responsive tweaks */
@media (max-width: 480px) {
    .dms-gallery-header { 
        font-size:14px; 
        text-align:center;
    }
    .dms-gallery-meta-row { 
        flex-direction:column; 
        align-items:center;     /* Center avatar + meta info */
        gap:6px; 
    }
    .dms-gallery-meta-info { 
        flex-direction:column; 
        gap:6px; 
        align-items:center;
    }
    .dms-gallery-action-row {
        justify-content:center;
        width:100%;
    }



.dms-stats-container,
.dms-member-badge,
.dms-size-badge,
.dms-member-username,
.dms-member-chat-row {
    all: unset;
    all: revert;
}


/* Roleplay Sidebar Base */
.dms-roleplay {
    width: 100%;
    max-width: 340px;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

.rp-stats-container {
    font-size: 13px;
    padding: 0;
}

.rp-stats-heading {
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.rp-badge-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 19px;
}

.rp-badge {
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: transparent;
    text-transform: uppercase;
    line-height: 1.4;
    display: block;
    width: 100%;
    text-align: left;
    border: 1.5px solid;
}

.rp-badge.tiny { border-color: #007BFF; }
.rp-badge.giant { border-color: #D10000; }
.rp-badge.versatile { border-color: #8000A0; }

.rp-active-heading {
    font-size: 15px;
    font-weight: 600;
    color: #effd00;
    margin: 20px 0 10px;
}

.rp-active-list {
    margin-bottom: 10px;
}

.rp-member {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    padding: 3px 9px 3px 4px;
    margin: 6px auto 8px auto;
    background: #161621;
    border: 2px solid;
    gap: 7px;
    min-height: 49px;
}

.rp-member.giant { border-color: #D10000; color: #ff8888; }
.rp-member.tiny { border-color: #007BFF; color: #aaddff; }
.rp-member.versatile { border-color: #8000A0; color: #f0caff; }

.rp-avatar {
    width: 45px;
    height: 45px;
    object-fit: cover;
    margin-right: 6px;
    border: 1px solid #313146;
    background: #232323;
}

.rp-member-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rp-username {
    font-size: 14px;
    font-weight: 600;
    color: #ffc400;
    cursor: pointer;
    position: relative;
}

.rp-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    z-index: 1002;
    background: #28283c;
    color: #fff;
    font-size: 13px;
    border-radius: 7px;
    padding: 11px 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.67);
    min-width: 220px;
    max-width: 330px;
    max-height: 200px;
    overflow-y: auto;
    white-space: normal;
}

.rp-chat-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 13px;
}

.rp-chat-icon {
    width: 17px;
    height: 17px;
    fill: #6be1ff;
    display: inline-block;
    vertical-align: middle;
}

.rp-chat-link {
    color: #6be1ff;
    text-decoration: underline;
    font-weight: 500;
}

.rp-room-btn {
    display: block;
    margin: 18px 0 12px 0;
    background: #effd00;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    padding: 9px 0;
    width: 100%;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.rp-room-btn:hover {
    background: #fff200;
}

.rp-no-members {
    color: #aaa;
}


/*
 * ========================================
 * DMS - Action Button Styles (V2)
 *
 * Uses !important to override theme defaults.
 * ========================================
 */

/* --- 1. Base Button Style --- */
.dms-action-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important; /* Space between icon and text */

  background-color: #222 !important; /* Dark background */
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1 !important;

  padding: 10px 18px !important;
  border-radius: 50px !important; /* This makes it a pill */
  
  border: 1px solid transparent !important; 
  
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
}

/* --- 2. Hover State --- */
.dms-action-button:hover {
  background-color: #333 !important;
  color: #fff !important; /* Ensure text stays white on hover */
}

/* --- 3. Like Button --- */
.dms-action-button.action-like .fa-thumbs-up {
  color: #ffe066 !important; /* The yellow icon color */
}

/* This is the ACTIVE "Liked" state */
.dms-action-button.action-like.is-active {
  border-color: #ffe066 !important; /* The yellow border */
  background-color: #222 !important; /* Keep background dark */
  color: #fff !important; /* Keep text white */
}

/* --- 4. Bookmark Button --- */
.dms-action-button.action-bookmark .fa-regular {
  color: #aaa !important; /* Gray/white icon */
}

/* This is the ACTIVE "Bookmarked" state */
.dms-action-button.action-bookmark.is-active {
  border-color: #ffe066 !important; /* The yellow border */
  background-color: #222 !important; /* Keep background dark */
  color: #fff !important; /* Keep text white */
}

/* Make the ACTIVE bookmark icon yellow */
.dms-action-button.action-bookmark.is-active .fa-solid {
  color: #ffe066 !important; /* The yellow icon color */
}

/* --- Site News Copy Styles --- */

/* The Button Container (Centers it) */
.site-news-copy_container {
    text-align: center !important;
    margin: 40px 0 20px 0 !important;
    display: block !important;
}

/* The Button Itself */
.site-news-copy_btn {
    display: inline-block !important;
    background-color: #5f0000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 30px !important;
    border-radius: 4px !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    border: 1px solid #5f0000 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
}

/* Hover Effect */
.site-news-copy_btn:hover {
    background-color: #7f0000 !important; /* Lighter Red */
    border-color: #7f0000 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2) !important;
}