/* ===========================================
   BASE STYLES & RESET
   =========================================== */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #121212;
    color: #e0e0e0;
    padding-right: 0;
}

/* ===========================================
   NAVIGATION & MOBILE MENU
   =========================================== */
nav {
    position: relative;
    background-color: #333;
}

.menu-icon {
    display: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    padding: 8px;
    background-color: #333;
    border-radius: 4px;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: static;
    display: flex;
    justify-content: flex-end;
    background-color: transparent;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    color: white;
    text-align: left;
    padding: 14px 20px;
    text-decoration: none;
}

.nav-links li a:hover {
    background-color: #575757;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h2, h3 {
    color: #ffffff;
}

h3 small {
    font-size: 0.7em;
    color: #cccccc;
}

a {
    color: #ea9ab2;
}

.correct-code {
    color: #ea9ab2;
    font-weight: 900;
}

/* ===========================================
   LAYOUT COMPONENTS
   =========================================== */
.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    margin-bottom: 10px;
}

.page-description {
    color: #ccc;
    font-style: italic;
    margin-bottom: 20px;
}

.container {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #2b2b2b;
    border-radius: 5px;
}

/* ===========================================
   VAULT SELECTOR & FORM ELEMENTS
   =========================================== */
.vault-selector {
    background: #2b2b2b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vault-selector h3 {
    margin: 0 0 10px 0;
    color: #ea9ab2;
    font-size: 16px;
}

.form-inline {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-inline .form-group {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e0e0e0;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===========================================
   FORM INPUTS
   =========================================== */
input,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    color: #ffffff;
    background-color: #2b2b2b;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    border: 1px solid #555;
    color: #ffffff;
    background-color: #2b2b2b;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea#codes {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
}

/* ===========================================
   BUTTONS
   =========================================== */
button {
    background-color: #ea9ab2;
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn {
    background-color: #ea9ab2;
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-small {
    padding: 3px 8px;
    font-size: 11px;
}

.btn-danger {
    background-color: red;
    color: white;
}

.btn-success {
    background-color: green;
    color: white;
}

.btn-warning {
    background-color: orange;
    color: black;
}

.btn-secondary {
    background-color: #555;
    color: white;
}

#buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

#buttons button {
    flex: 1 1 calc(33.33% - 10px);
    min-width: 100px;
    max-width: 200px;
    text-align: center;
}

/* ===========================================
   CHECKBOXES & RADIO BUTTONS
   =========================================== */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ea9ab2;
    border-radius: 4px;
    background-color: #2b2b2b;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #ea9ab2;
    border-color: #ea9ab2;
}

.checkbox-container input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ea9ab2;
    border-radius: 50%;
    background-color: #2b2b2b;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-container input[type="radio"]:checked {
    background-color: #ea9ab2;
    border-color: #ea9ab2;
}

.checkbox-container label {
    font-weight: bold;
    color: #e0e0e0;
    cursor: pointer;
}

/* ===========================================
   TABLES
   =========================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    border: 1px solid #333;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #1e1e1e;
    color: #ffffff;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #1a1a1a;
}

table tr:hover {
    background-color: #2a2a2a;
}

/* Stats Tables (for modern card layouts) */
.stats-table {
    width: 100%;
    margin: 10px 0;
    table-layout: auto;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #444;
    border: none;
}

.stats-table th {
    background: #1e1e1e;
    color: #ea9ab2;
    font-weight: bold;
}

.stats-table td {
    vertical-align: top;
}

.stats-table td small {
    color: #999;
    font-size: 11px;
}

.rank-cell {
    font-weight: bold;
    color: #ea9ab2;
    text-align: center;
    width: 40px;
}

/* ===========================================
   CARD LAYOUTS (MODERN STYLE)
   =========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stats-card {
    background: #2b2b2b;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #ea9ab2;
}

.stats-card h3 {
    margin: 0 0 15px 0;
    color: #ea9ab2;
    font-size: 18px;
}

.stats-card h4 {
    margin: 15px 0 10px 0;
    color: #fff;
    font-size: 16px;
}

/* Cards Grid for Summit/Achievement Pages */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.achievement-card,
.milestone-card {
    background: #2b2b2b;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #555;
    transition: all 0.3s ease;
}

.achievement-card:hover,
.milestone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.achievement-card.completed {
    border-left-color: #ea9ab2;
}

.milestone-card.has-completions {
    border-left-color: #4CAF50;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-header h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    flex: 1;
}

.card-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.card-footer {
    border-top: 1px solid #444;
    padding-top: 15px;
}

/* ===========================================
   PROGRESS BARS
   =========================================== */
.progress-bar {
    background: #444;
    border-radius: 10px;
    height: 20px;
    overflow: visible;
    margin: 10px 0;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #ea9ab2, #ff6b9d);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    min-width: 40px;
    position: relative;
}

/* ===========================================
   ACTIVITY BARS (for single user pages)
   =========================================== */
.activity-bars {
    margin: 15px 0;
}

.activity-bar {
    margin-bottom: 12px;
}

.activity-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 14px;
}

.activity-label .count {
    font-weight: bold;
    color: #ea9ab2;
}

.activity-label .user-link {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-progress {
    background: #444;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.activity-fill {
    background: linear-gradient(90deg, #ea9ab2, #ff6b9d);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    min-width: 2px;
}

/* ===========================================
   BADGES & STATUS INDICATORS
   =========================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    min-width: 80px;
    min-height: 22px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.status-completed {
    background: #ea9ab2;
    color: #000;
}

.status-incomplete {
    background: #555;
    color: #999;
}

.completion-count {
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.digit-badge {
    background: #ea9ab2;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
}

/* ===========================================
   USER TAGS & LINKS
   =========================================== */
.user-link {
    color: #ea9ab2;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.user-link:hover {
    color: #ff6b9d;
    text-decoration: underline;
}

.stats-table .user-link {
    font-size: inherit;
}

.user-tag {
    display: inline-block;
    background: #444;
    padding: 2px 8px;
    border-radius: 12px;
    margin: 2px;
    font-size: 12px;
    color: #ddd;
}

.user-tag.fulfilled {
    background: #4CAF50;
    color: white;
}

.user-tag.pending {
    background: #ea9ab2;
    color: #000;
}

/* ===========================================
   INFORMATION BOXES
   =========================================== */
.note-box {
    background: #2a2a2a;
    border-left: 4px solid #666;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.note-box.info {
    border-left-color: #4CAF50;
}

.note-box.warning {
    border-left-color: #ff9800;
}

.highlight-box {
    background: rgba(234, 154, 178, 0.1);
    border: 1px solid #ea9ab2;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.highlight-box h4 {
    color: #ea9ab2;
    margin: 0 0 10px 0;
}

.hidden-reward-info {
    margin-top: 8px;
    padding: 5px 8px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 4px;
    color: #ffc107;
}

.hidden-reward-info small {
    font-style: italic;
}

/* ===========================================
   TOP PERFORMERS & HALL OF FAME
   =========================================== */
.top-performers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.performer-section h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.performer-card {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #ea9ab2;
    transition: background-color 0.2s ease;
}

.performer-card:hover {
    background: #252525;
}

.performer-name {
    margin-bottom: 8px;
}

.performer-name .user-link {
    font-size: 16px;
    font-weight: bold;
}

.performer-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.main-stat {
    font-size: 18px;
    font-weight: bold;
    color: #ea9ab2;
}

.sub-stat {
    font-size: 12px;
    color: #999;
}

.hall-of-fame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.champion-section h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.champion-card {
    background: linear-gradient(135deg, #ea9ab2, #ff6b9d);
    color: #000;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.champion-name .user-link {
    color: #000;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.champion-name .user-link:hover {
    text-decoration: underline;
}

.champion-stats {
    margin-top: 8px;
}

.champion-stats .main-stat {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.champion-stats .sub-stat {
    font-size: 12px;
    color: #333;
    margin-top: 4px;
}

.no-data {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 6px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* ===========================================
   SPECIAL CONTENT SECTIONS
   =========================================== */
.special-rewards {
    background: linear-gradient(135deg, #4a4a4a, #2b2b2b);
    border: 2px solid #ea9ab2;
    border-radius: 8px;
}

.special-reward-item {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(234, 154, 178, 0.1);
    border-radius: 5px;
    border-left: 4px solid #ea9ab2;
}

.special-reward-title {
    margin: 0 0 8px 0;
    color: #ea9ab2;
    font-size: 16px;
}

.special-reward-item h5 {
    margin: 0 0 8px 0;
}

.special-reward-item p {
    margin: 5px 0;
}

.special-reward-item:last-child {
    margin-bottom: 0;
}

.vault-section {
    margin-bottom: 30px;
}

.completion-status {
    margin-bottom: 10px;
    color: #ddd;
}

.reward-info {
    color: #fff;
    font-size: 14px;
}

.fulfilled-tag {
    color: #4CAF50;
    font-weight: bold;
}

.completed-users {
    margin-bottom: 10px;
}

/* ===========================================
   SUMMIT & SECTIONS
   =========================================== */
.summit-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.summit-section {
    margin-bottom: 40px;
}

.section-description {
    margin-bottom: 20px;
    color: #ccc;
    font-style: italic;
}

/* ===========================================
   PAGINATION
   =========================================== */
.pagination {
    margin: 1em 0;
    text-align: center;
}

.pagination a {
    margin: 0 2px;
    padding: 3px 8px;
    text-decoration: none;
    border-radius: 3px;
    color: #ea9ab2;
    border: 1px solid #ea9ab2;
}

.pagination a.active {
    background: #333;
    color: #ea9ab2;
    border-color: #333;
}

.pagination .ellipsis {
    margin: 0 4px;
    color: #ea9ab2;
}

/* ===========================================
   TABS & MODALS
   =========================================== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.tab-button:hover, 
.tab-button.active {
    background-color: #575757;
}

.tab-content {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2b2b2b;
    padding: 20px;
    border-radius: 5px;
    min-width: 350px;
    max-width: 90vw;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.text-small {
    font-size: 12px;
    color: #ccc;
}

.text-center {
    text-align: center;
}

.hidden-user {
    opacity: 0.7;
    color: orange;
}

.trade-name {
    color: green;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fetched-codes {
    margin-top: 20px;
}

.footer {
    text-align: center;
    margin-top: 20px;
}

.footer a {
    text-decoration: none;
    color: #444;
    font-size: 0.8em;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ea9ab2;
}

/* ===========================================
   LEGACY SUPPORT (for older pages)
   =========================================== */
#information b {
    font-size: 1.2em;
}

/* How-to page styles */
.how-to-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

.notice-box {
    background: #2a2a1a;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #ea9ab2;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #ea9ab2;
}

.section h3 {
    margin-top: 0;
    color: #ffffff;
    border-bottom: 2px solid #ea9ab2;
    padding-bottom: 10px;
}

.section h4 {
    color: #e0e0e0;
    margin-top: 20px;
}

.important-notes {
    background: #1e2a3a;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #ea9ab2;
}

.important-notes ul {
    margin-bottom: 0;
}

.important-notes li {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.important-notes h4 {
    color: #ffffff;
    margin-top: 0;
}

.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.step-list > li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding: 10px;
    background: #2b2b2b;
    border-radius: 5px;
    border-left: 3px solid #ea9ab2;
    position: relative;
    padding-left: 45px;
    color: #e0e0e0;
}

.step-list > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #ea9ab2;
    color: #000;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.sub-list {
    margin-top: 10px;
    padding-left: 20px;
}

.sub-list li {
    color: #cccccc;
    margin-bottom: 5px;
}

.code-highlight {
    background: #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    color: #ea9ab2;
}

.screenshot {
    max-width: 100%;
    border: 1px solid #555;
    border-radius: 5px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.warning-box {
    background: #2a1a1a;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #ff6b6b;
}

.warning-box h4 {
    color: #ff6b6b;
    margin-top: 0;
}

.warning-box ul li {
    color: #e0e0e0;
    margin-bottom: 8px;
}

.info-box {
    background: #1a2a1a;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #4caf50;
    color: #e0e0e0;
}

.how-to-container p {
    color: #e0e0e0;
}

.how-to-container strong {
    color: #ffffff;
}

.how-to-container em {
    color: #ea9ab2;
    font-style: italic;
}

/* ===========================================
   REQUEST PAGE SPECIFIC STYLES
   =========================================== */

/* Filter options */
.filter-option {
    margin: 15px 0;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 5px;
    border-left: 3px solid #ea9ab2;
}

/* Highlighting section */
.highlight-section {
    margin: 20px 0;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
}

.highlight-section h4 {
    margin: 0 0 10px 0;
    color: #4CAF50;
}

/* Code output */
.code-output-section {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

#codes {
    background: #0a0a0a;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 10px;
    width: 100%;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}

/* ===========================================
   QUICKREQUEST PAGE SPECIFIC STYLES
   =========================================== */

/* Quick buttons grid */
.quick-buttons-section {
    margin: 20px 0;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
}

.quick-buttons-section h4 {
    margin: 0 0 15px 0;
    color: #4CAF50;
}

.quick-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.quick-btn {
    background: #ea9ab2;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 60px;
    justify-content: center;
}

.quick-btn:hover {
    background: #ff6b9d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(234, 154, 178, 0.3);
}

.quick-btn.highlight-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.quick-btn.highlight-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.quick-note {
     background-image: linear-gradient(135deg, #FFD700, #FFA500);
     background-clip: text;
     color: transparent;
     font-weight: bold;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quick-btn-title {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
}

.status-badge.pending-codes {
    background: #ff9800;
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    min-height: 20px;
    min-width: 80px;
    text-align: center;
}

.status-badge.available {
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    min-height: 20px;
    min-width: 80px;
    text-align: center;
}

.stats-table th:last-child,
.stats-table td:last-child {
    min-width: 100px;
    width: 100px;
    text-align: center;
}

.stats-table th:first-child,
.stats-table td:first-child {
    width: auto;
}

.stats-table th:nth-child(2),
.stats-table td:nth-child(2) {
    width: 80px;
    text-align: center;
}

.cracker-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 5px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 12px;
    color: #ccc;
    margin-bottom: 2px;
}

.summary-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #ea9ab2;
}

/* ===========================================
   VERIFY PAGE SPECIFIC STYLES
   =========================================== */

.stats-table tbody tr.user-row:nth-of-type(2n) {
    background-color: rgba(255, 255, 255, 0.20);
}

.stats-table tbody tr.user-row:nth-of-type(2n+1) {
    background-color: rgba(255, 255, 255, 0.01);
}

/* User codes expandable rows */
.user-codes-row {
    background: #1a1a1a !important;
}

.user-codes-container {
    padding: 15px;
    background: #1e1e1e;
    border-radius: 5px;
    margin: 10px 0;
}

/* Mobile-friendly code cards instead of table */
.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.code-card {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 12px;
    border-left: 3px solid #ea9ab2;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.code-display {
    background: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #ea9ab2;
    font-weight: bold;
    font-size: 14px;
}

.manager-label {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.code-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.expand-btn {
    white-space: nowrap;
}

.expand-icon {
    font-size: 12px;
    margin-right: 5px;
}

.copy-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.copy-btn:hover {
    background: #45a049;
}

/* Tiny buttons for individual code actions */
.btn-tiny {
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.2;
}

/* ===========================================
   RESPACE PAGE SPECIFIC STYLES
   =========================================== */

/* User tags container */
.user-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.user-tag {
    display: inline-block;
    background: #444;
    padding: 6px 12px;
    border-radius: 16px;
    margin: 2px;
    font-size: 13px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-tag:hover {
    background: #555;
    color: #fff;
    transform: translateY(-1px);
}

.user-tag.selected {
    background: #ea9ab2;
    color: #000;
    font-weight: bold;
}

/* Code stats display */
.code-stats {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stats-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: #ccc;
    font-size: 14px;
}

.stat-value {
    color: #ea9ab2;
    font-weight: bold;
    font-size: 14px;
}

/* Enhanced textarea styling for respace */
#input_codes,
#output_codes {
    background: #0a0a0a;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 5px;
    font-family: 'Courier New', Consolas, monospace;
    line-height: 1.5;
}

#input_codes:focus,
#output_codes:focus {
    border-color: #ea9ab2;
    outline: none;
    box-shadow: 0 0 5px rgba(234, 154, 178, 0.3);
}

/* ===========================================
   CODE CHECK PAGE SPECIFIC STYLES
   =========================================== */

/* Code result display */
.code-result-header {
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 5px;
}

.code-display-large {
    background: #333;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Courier New', Consolas, monospace;
    color: #ea9ab2;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 2px;
}

/* Status grid layout */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.status-item {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 3px solid #444;
    transition: border-left-color 0.2s ease;
}

.status-item:hover {
    border-left-color: #ea9ab2;
}

.status-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.status-content {
    flex: 1;
}

.status-content h5 {
    margin: 0 0 8px 0;
    color: #ccc;
    font-size: 14px;
    font-weight: normal;
}

.status-value {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.status-value.verified {
    color: #4CAF50;
}

.status-value.unverified {
    color: #ff9800;
}

.status-value.correct-code {
    color: #FFD700;
    font-size: 18px;
}

/* Quick actions */
.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.quick-actions .btn {
    font-size: 12px;
    padding: 4px 8px;
}

/* ===========================================
   VERIFIED PAGE SPECIFIC STYLES
   =========================================== */

/* Progress summary */
.progress-summary {
    margin-top: 10px;
}

.progress-item {
    margin-bottom: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-count {
    font-weight: bold;
    color: #ea9ab2;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 5px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #ea9ab2;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Top contributors */
.top-contributors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contributor-section h4 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid #444;
    padding-bottom: 6px;
}

.contributor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #1e1e1e;
    border-radius: 4px;
    margin-bottom: 6px;
    border-left: 2px solid #ea9ab2;
}

.contributor-item:last-child {
    margin-bottom: 0;
}

.contribution-count {
    background: #ea9ab2;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Filter form */
.filter-form {
    margin: 0;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

/* Codes table */
.codes-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.copy-code-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background: #444;
    color: #ea9ab2;
}

.filter-link {
    color: #999;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.filter-link:hover {
    color: #ea9ab2;
    text-decoration: underline;
}

/* Enhanced pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.pagination-btn {
    padding: 8px 12px;
    background: #444;
    color: #ddd;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #555;
}

.pagination-btn:hover {
    background: #555;
    color: #fff;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: #ea9ab2;
    color: #000;
    border-color: #ea9ab2;
    font-weight: bold;
}

.pagination .ellipsis {
    color: #999;
    padding: 8px 4px;
    font-weight: bold;
}

.pagination-info {
    text-align: center;
    margin-top: 10px;
    color: #999;
    font-size: 13px;
}

/* ===========================================
   SPONSORSHIP & VAULT DETAILS SPECIFIC STYLES
   =========================================== */

/* Pool status display */
.pool-status {
    text-align: center;
    padding: 20px;
}

.pool-amount {
    margin-bottom: 15px;
}

.pool-label {
    display: block;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
}

.pool-value {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
}

.gold-icon {
    font-size: 24px;
    margin-left: 5px;
}

.pool-info {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 5px;
}

.pool-stat {
    text-align: center;
}

/* Transaction types */
.transaction-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.transaction-type.attempts {
    background: #ff9800;
    color: #000;
}

.transaction-type.donation {
    background: #4CAF50;
    color: white;
}

/* User info in transactions */
.user-info {
    line-height: 1.3;
}

/* Reimbursement summary */
.reimbursement-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 5px;
}

.reimburse-stat {
    text-align: center;
}

.reimburse-label {
    display: block;
    font-size: 12px;
    color: #ccc;
    margin-bottom: 5px;
}

.reimburse-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.reimburse-value.unreimbursed {
    color: #f44336;
}

.reimburse-value.reimbursed {
    color: #4CAF50;
}

/* Reimbursement status */
.reimbursement-status {
    text-align: center;
}

.status-badge.reimbursed {
    background: #4CAF50;
    color: white;
    min-width: 90px;
}

.status-badge.unreimbursed {
    background: #f44336;
    color: white;
    min-width: 90px;
}

/* Vault details styles */
.crack-rate {
    margin-top: 20px;
}

.recent-vaults {
    max-height: 300px;
    overflow-y: auto;
}

.recent-vault-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 5px;
    margin-bottom: 8px;
    border-left: 3px solid #ea9ab2;
}

.vault-date {
    font-weight: bold;
    font-size: 12px;
    color: #ccc;
}

.vault-prize {
    flex: 1;
    margin: 0 10px;
    font-size: 13px;
}

.status-badge.cracked {
    background: #4CAF50;
    color: white;
    min-width: 85px;
}

.status-badge.uncracked {
    background: #f44336;
    color: white;
    min-width: 85px;
}

/* Prize info styling */
.prize-info {
    line-height: 1.3;
}

.prize-name {
    font-weight: bold;
    color: #FFD700;
}

/* Winning code display */
.winning-code {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uncracked-notice {
    font-style: italic;
}

/* Vault history container */
.vault-history-container {
    max-height: 600px;
    overflow-y: auto;
}

/* Transaction table container */
.transaction-table-container {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

/* ===========================================
   MOBILE RESPONSIVE STYLES
   =========================================== */
@media (max-width: 768px) {
    body {
        overflow-x: auto;
        position: relative;
    }

    /* Navigation */
    .menu-icon {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background-color: #333;
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 10px 0;
        box-sizing: border-box;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links li a {
        width: 100%;
        text-align: left;
        padding: 8px 10px;
        display: block;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid #444;
        font-size: 14px;
        box-sizing: border-box;
    }

    .nav-links li a:hover {
        background-color: #575757;
    }

    .nav-links::-webkit-scrollbar {
        width: 6px;
    }

    .nav-links::-webkit-scrollbar-track {
        background: #333;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 3px;
    }

    .nav-links::-webkit-scrollbar-thumb:hover {
        background: #777;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Layout adjustments */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .top-performers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hall-of-fame {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-badge,
    .completion-count {
        margin-left: 0;
        margin-top: 5px;
    }

    /* Vault selector */
    .vault-selector {
        padding: 12px;
        margin-bottom: 15px;
    }

    .vault-selector h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .form-inline .form-group {
        margin-bottom: 15px;
        width: 100%;
    }

    .form-inline select {
        width: 100%;
    }

    /* Tables */
    .stats-table {
        display: table;
        width: 100%;
        overflow-x: visible;
        white-space: normal;
    }

    .stats-table th,
    .stats-table td {
        padding: 6px 8px;
        font-size: 13px;
        word-wrap: break-word;
    }

    .activity-label {
        font-size: 13px;
    }

    .activity-label .user-link {
        max-width: 150px;
    }

    .codes-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .code-card {
        padding: 10px;
    }

    .code-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .code-actions {
        width: 100%;
    }
    
    .code-actions form {
        flex: 1;
    }

    .code-actions button {
        width: 100%;
        padding: 6px 4px;
        font-size: 10px;
    }
    
    .manager-label {
        align-self: flex-end;
        font-size: 10px;
    }

    .digit-badge,
    .rank-badge {
        font-size: 11px;
        padding: 2px 5px;
    }

    .performer-card {
        padding: 12px;
    }

    .performer-name .user-link {
        font-size: 15px;
    }

    .main-stat {
        font-size: 16px;
    }

    .champion-card {
        padding: 12px;
    }

    .champion-name .user-link {
        font-size: 16px;
    }

    .champion-stats .main-stat {
        font-size: 18px;
    }

    .form-row .form-group {
        width: 100%;
        flex: none;
    }
    
    .form-group input,
    .form-group select {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .filter-option .form-group input,
    .filter-option .form-group select {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .highlight-section input[type="radio"],
    .highlight-section input[type="checkbox"],
    .checkbox-container input[type="radio"],
    .checkbox-container input[type="checkbox"] {
        width: 20px !important;
    }
    
    .highlight-section .checkbox-container {
        width: 100%;
    }
    
    .code-output-section > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .code-output-section button {
        width: 100%;
        align-self: stretch;
    }
    
    #codes {
        width: 100% !important;
        box-sizing: border-box;
    }

    .quick-buttons-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .quick-btn {
        padding: 10px;
        min-height: 50px;
    }
    
    .quick-btn-title {
        font-size: 13px;
    }

    .cracker-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .summary-label,
    .summary-value {
        display: inline;
    }
    
    .summary-value {
        font-size: 16px;
    }

    .action-buttons,
    .code-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .action-buttons form,
    .code-actions form {
        width: 100%;
    }
    
    .action-buttons button,
    .code-actions button {
        width: 100%;
    }
    
    .codes-table {
        font-size: 12px;
    }
    
    .codes-table th,
    .codes-table td {
        padding: 6px 8px;
    }
    
    .user-codes-container {
        padding: 10px;
    }
    
    .stats-table {
        font-size: 12px;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 4px 6px;
        vertical-align: middle;
    }
    
   .stats-table th:last-child,
    .stats-table td:last-child {
        min-width: 90px !important;
        width: 90px !important;
    }

    .stats-table th:first-child,
    .stats-table td:first-child {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stats-table th:nth-child(2),
    .stats-table td:nth-child(2) {
        width: 60px !important;
        text-align: center;
    }

    .status-badge.pending-codes,
    .status-badge.available {
        padding: 3px 8px;
        font-size: 10px;
        min-width: 70px;
        min-height: 18px;
    }

    .stats-table th:nth-child(3),
    .stats-table td:nth-child(3) {
        min-width: 120px;
    }

    .user-tags-container {
        gap: 6px;
    }
    
    .user-tag {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .code-stats {
        padding: 10px;
    }
    
    .stat-label,
    .stat-value {
        font-size: 13px;
    }
    
    #input_codes,
    #output_codes {
        font-size: 13px;
        padding: 10px;
    }

    .status-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .status-item {
        padding: 12px;
    }
    
    .status-icon {
        font-size: 20px;
    }
    
    .code-display-large {
        font-size: 16px;
        letter-spacing: 1px;
        padding: 6px 12px;
    }
    
    .status-content h5 {
        font-size: 13px;
    }
    
    .status-value {
        font-size: 14px;
    }
    
    .status-value.correct-code {
        font-size: 16px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn {
        width: 100%;
        text-align: center;
    }

    .top-contributors {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .stat-number {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .contributor-item {
        padding: 6px 10px;
    }
    
    .contributor-section h4 {
        font-size: 13px;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .copy-code-btn {
        padding: 4px;
        font-size: 10px;
    }
    
    .filter-link {
        font-size: 10px;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .code-display {
        font-size: 12px;
    }
    
    form {
        max-width: calc(100vw - 80px);
        overflow-x: auto;
    }

    input, select, textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    .pool-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .pool-value {
        font-size: 28px;
    }
    
    .reimbursement-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .recent-vault-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .vault-prize {
        margin: 0;
    }
    
    .winning-code {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .transaction-table-container,
    .vault-history-container {
        overflow-x: auto;
    }
    
    .stats-table th,
    .stats-table td {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .user-info {
        font-size: 12px;
    }
    
    .transaction-type {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (min-width: 769px) {
    .code-actions {
        justify-content: flex-start;
    }
    
    .code-actions form {
        flex: none;
    }
}