/* ============================================
   POPTABIST - Main Stylesheet
   Organized by component for easy maintenance
   ============================================ */

/* ============================================
   1. CUSTOM FONTS
   ============================================ */
@font-face {
    font-family: 'Kindly Crunch';
    src: url('/files/popfont.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   3. THEME MODES
   ============================================ */
body.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

/* ============================================
   4. TYPOGRAPHY
   ============================================ */
h1 {
    font-family: 'Kindly Crunch', sans-serif;
    font-size: 7.26rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

a {
    color: #000000;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

.dark-mode a {
    color: #ffffff;
}

/* ============================================
   5. HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 9999;
    background-color: #000000;
    border-bottom: 1px solid #262626;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.icon-button:hover {
    opacity: 0.7;
}

.icon-button svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.icon-button.grid-toggle svg,
.icon-button#gridToggle svg {
    width: 20px;
    height: 20px;
}

.icon-button.hidden {
    display: none;
}

.home-button {
    flex-shrink: 0;
    text-decoration: none;
}

.back-button {
    flex-shrink: 0;
    position: absolute;
    left: 16px;
}

/* ============================================
   6. TAB COUNTER (Odometer Component)
   ============================================ */
.tab-counter {
    display: inline-flex;
    align-items: stretch;
    gap: 8px;
    padding: 10px 20px;
    background: #0a0a0a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Tab counter in header - transparent version */
.header .tab-counter {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Tab counter on index page - clickable */
.container .tab-counter {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container .tab-counter:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.counter-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    margin-right: 5px;
}

.counter-label-top {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.counter-label-bottom {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.75px;
    color: #999999;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.counter-digits {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.digit-box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #0a0a0a 0%, #2a2a2a 50%, #0a0a0a 100%);
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 9px 6px;
    min-width: 30px;
    width: 30px;
    height: 46px;
    margin: 0 1px;
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.5),
        inset 0 -1px 2px rgba(0,0,0,0.5),
        0 2px 4px rgba(0,0,0,0.3);
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.digit-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.3) 100%);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

.digit-box .odometer {
    position: relative;
    z-index: 2;
}

/* Odometer Library Styles */
.tab-counter .odometer.odometer-auto-theme, 
.tab-counter .odometer.odometer-theme-default {
    display: inline-block;
    line-height: 1;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.tab-counter .odometer.odometer-auto-theme .odometer-inside, 
.tab-counter .odometer.odometer-theme-default .odometer-inside {
    display: inline-block;
}

.tab-counter .odometer.odometer-auto-theme .odometer-digit, 
.tab-counter .odometer.odometer-theme-default .odometer-digit {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.tab-counter .odometer.odometer-auto-theme .odometer-digit .odometer-digit-spacer, 
.tab-counter .odometer.odometer-theme-default .odometer-digit .odometer-digit-spacer {
    display: inline-block;
    vertical-align: middle;
    visibility: hidden;
}

.tab-counter .odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner, 
.tab-counter .odometer.odometer-theme-default .odometer-digit .odometer-digit-inner {
    text-align: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.tab-counter .odometer.odometer-auto-theme .odometer-digit .odometer-ribbon, 
.tab-counter .odometer.odometer-theme-default .odometer-digit .odometer-ribbon {
    display: block;
}

.tab-counter .odometer.odometer-auto-theme .odometer-digit .odometer-ribbon-inner, 
.tab-counter .odometer.odometer-theme-default .odometer-digit .odometer-ribbon-inner {
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.tab-counter .odometer.odometer-auto-theme .odometer-digit .odometer-value, 
.tab-counter .odometer.odometer-theme-default .odometer-digit .odometer-value {
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.tab-counter .odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value, 
.tab-counter .odometer.odometer-theme-default .odometer-digit .odometer-value.odometer-last-value {
    position: absolute;
}

.tab-counter .odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner, 
.tab-counter .odometer.odometer-theme-default.odometer-animating-up .odometer-ribbon-inner {
    -webkit-transition: -webkit-transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
    -moz-transition: -moz-transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
    -ms-transition: -ms-transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
    -o-transition: -o-transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
    transition: transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.tab-counter .odometer.odometer-auto-theme.odometer-animating-up.odometer-animating .odometer-ribbon-inner, 
.tab-counter .odometer.odometer-theme-default.odometer-animating-up.odometer-animating .odometer-ribbon-inner {
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    transform: translateY(-100%);
}

.tab-counter .odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbon-inner, 
.tab-counter .odometer.odometer-theme-default.odometer-animating-down .odometer-ribbon-inner {
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    transform: translateY(-100%);
}

.tab-counter .odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner, 
.tab-counter .odometer.odometer-theme-default.odometer-animating-down.odometer-animating .odometer-ribbon-inner {
    -webkit-transition: -webkit-transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
    -moz-transition: -moz-transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
    -ms-transition: -ms-transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
    -o-transition: -o-transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
    transition: transform 2s cubic-bezier(0.4, 0.0, 0.2, 1);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

/* Header counter adjustments (smaller) */
.header .counter-label {
    padding: 0 8px;
    margin-right: 3px;
}

.header .counter-label-top {
    font-size: 16px;
    letter-spacing: 0.7px;
    margin-bottom: 1px;
}

.header .counter-label-bottom {
    font-size: 10px;
    letter-spacing: 0.7px;
}

.header .counter-digits {
    gap: 1px;
}

.header .digit-box {
    border-radius: 5px;
    padding: 6px 5px;
    min-width: 23px;
    width: 23px;
    height: 35px;
    margin: 0 0.5px;
    box-shadow: 
        inset 0 1px 1px rgba(0,0,0,0.5),
        inset 0 -1px 1px rgba(0,0,0,0.5),
        0 1px 2px rgba(0,0,0,0.3);
}

.header .digit-box::before {
    border-radius: 5px;
}

.header .tab-counter .odometer {
    font-size: 23px !important;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.cta-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    border: 2px solid #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    /* Can add secondary button styles here if needed */
}

/* ============================================
   8. FORMS
   ============================================ */
.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #000;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #000;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background-color: #fff;
}

input[type="file"]::-webkit-file-upload-button {
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #333;
}

.email-input {
    width: 100%;
    max-width: 350px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #000000;
    border-radius: 50px;
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.email-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.email-submit,
.submit-btn {
    padding: 0.75rem 2.5rem;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.email-submit:hover,
.submit-btn:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.email-submit:disabled,
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    font-size: 16px;
    margin-top: 15px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.form-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

.form-message.success,
.message.success {
    color: #008000;
}

.form-message.error,
.message.error {
    color: #ff0000;
}

.message {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

/* ============================================
   9. SOCIAL ICONS
   ============================================ */
.simple-social {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.simple-social a {
    display: inline-block;
    margin: 0 6px;
    width: 54px;
    height: 54px;
    background-color: #000;
    border-radius: 50%;
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.simple-social a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.simple-social a img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    display: block;
}

/* ============================================
   10. CONTENT SECTIONS
   ============================================ */
.container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    overflow-x: hidden;
    width: 100%;
}

.email-signup {
    margin-top: 0;
    padding-top: 0;
}

.email-signup h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.email-signup p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ============================================
   11. GRID VIEW
   ============================================ */
.grid-view {
    padding: 0;
    margin-top: 60px;
}

.grid-view.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.grid-view.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}

.grid-view.hidden {
    display: none;
}

.grid-item {
    aspect-ratio: 4 / 5;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: border-color 0.3s ease;
}

.grid-item.locked {
    opacity: 0.5;
}

.grid-item.locked img {
    filter: grayscale(40%);
}

.grid-item img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.grid-item-number {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    opacity: 1;
    pointer-events: none;
    padding: 0 4px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .grid-item-number {
    color: #999999;
}

.light-mode .grid-item-number {
    color: #666666;
}

.grid-image-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
}

.grid-item-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4px 8px 4px;
    flex-shrink: 0;
}

.grid-claim-btn {
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: all;
    width: calc(100% - 8px);
}

.dark-mode .grid-claim-btn {
    background-color: rgba(38, 38, 38, 0.95);
    color: #ffffff;
    border-color: rgba(38, 38, 38, 0.95);
}

.light-mode .grid-claim-btn {
    background-color: rgba(245, 245, 245, 0.95);
    color: #000000;
    border-color: rgba(245, 245, 245, 0.95);
}

.dark-mode .grid-claim-btn:hover {
    background-color: rgba(38, 38, 38, 1);
    color: #ffffff;
}

.light-mode .grid-claim-btn:hover {
    background-color: rgba(230, 230, 230, 1);
    color: #000000;
}

/* ============================================
   12. FEED VIEW
   ============================================ */
.feed-view {
    padding-bottom: 50px;
}

.feed-view.hidden {
    display: none;
}

.feed-post {
    margin-bottom: 24px;
    transition: border-color 0.3s ease;
}

.dark-mode .feed-post {
    border-bottom: 1px solid #262626;
}

.light-mode .feed-post {
    border-bottom: 1px solid #dbdbdb;
}

.feed-view.hide-details .post-details {
    display: none;
}

.feed-view.hide-details .carousel-dots {
    display: none;
}

/* ============================================
   13. CAROUSEL
   ============================================ */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.carousel-container {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.dark-mode .carousel-slide {
    background-color: #000000;
}

.light-mode .carousel-slide {
    background-color: #ffffff;
}

.carousel-slide img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.dark-mode .dot {
    background-color: #ffffff;
    opacity: 0.3;
}

.light-mode .dot {
    background-color: #000000;
    opacity: 0.3;
}

.dark-mode .dot.active {
    opacity: 1;
}

.light-mode .dot.active {
    opacity: 1;
}

/* ============================================
   14. POST DETAILS
   ============================================ */
.post-details {
    padding: 12px 16px 24px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.post-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-description {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: center;
}

.post-stats {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.bounty-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.dark-mode .bounty-badge {
    background-color: #00ff00;
    color: #000000;
}

.light-mode .bounty-badge {
    background-color: #008000;
    color: #ffffff;
}

.claim-bounty-btn {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dark-mode .claim-bounty-btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.light-mode .claim-bounty-btn {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.dark-mode .claim-bounty-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.light-mode .claim-bounty-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.dark-mode .image-container {
    background-color: #000000;
}

.light-mode .image-container {
    background-color: #ffffff;
}

.image-container img {
    width: auto;
    height: 70%;
    max-width: 70%;
    object-fit: contain;
}

/* ============================================
   15. SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.dark-mode .scroll-top {
    background-color: #262626;
}

.light-mode .scroll-top {
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
}

.scroll-top:hover {
    opacity: 0.7;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

.dark-mode .scroll-top svg {
    fill: #ffffff;
}

.light-mode .scroll-top svg {
    fill: #000000;
}

/* ============================================
   16. FOOTER
   ============================================ */
.footer {
    margin-top: 2rem;
    padding: 40px 20px;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-mode .footer {
    background-color: #000000;
    border-top: 1px solid #262626;
}

.light-mode .footer {
    background-color: #ffffff;
    border-top: 1px solid #dbdbdb;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.footer-button {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.dark-mode .footer-button {
    background-color: #ffffff;
    color: #000000;
}

.light-mode .footer-button {
    background-color: #000000;
    color: #ffffff;
}

.dark-mode .footer-button:hover {
    background-color: #333333;
    color: #ffffff;
}

.light-mode .footer-button:hover {
    background-color: #333333;
    color: #ffffff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.dark-mode .footer-social a {
    background-color: #ffffff;
}

.light-mode .footer-social a {
    background-color: #000000;
}

.footer-social a:hover {
    transform: scale(1.1);
}

.footer-social img {
    width: 100%;
    height: 100%;
}

.dark-mode .footer-social img {
    filter: brightness(0) invert(0);
}

.light-mode .footer-social img {
    filter: brightness(0) invert(1);
}

.footer-copyright {
    margin-top: 32px;
    padding-top: 24px;
    font-size: 14px;
    opacity: 0.7;
    transition: border-color 0.3s ease;
}

.dark-mode .footer-copyright {
    border-top: 1px solid #262626;
}

.light-mode .footer-copyright {
    border-top: 1px solid #dbdbdb;
}

.footer-copyright a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.dark-mode .footer-copyright a {
    color: #ffffff;
}

.light-mode .footer-copyright a {
    color: #000000;
}

.footer-copyright a:hover {
    opacity: 0.6;
}

/* ============================================
   17. UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 20px;
    opacity: 0.6;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #000;
}

/* ============================================
   18. FILE UPLOAD PREVIEW
   ============================================ */
.preview-grid {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    width: 75px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.remove-btn:hover {
    background: #f00;
}

.file-info {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* ============================================
   19. RESPONSIVE DESIGN
   ============================================ */

/* Mobile - Small screens */
@media (max-width: 400px) {
    .grid-item {
        overflow: hidden;
    }
    
    .grid-item img {
        width: 60%;
        height: 60%;
    }
    
    .grid-item-number {
        font-size: 8px;
        bottom: 6px;
        padding: 0 2px;
    }
    
    .grid-claim-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 360px) {
    .grid-item img {
        width: 58%;
        height: 58%;
    }
    
    .grid-item-number {
        font-size: 7px;
        bottom: 4px;
    }
    
    .grid-claim-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Mobile - General */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 4.235rem;
    }

    p {
        font-size: 1.1rem;
    }

    .simple-social a {
        width: 58px;
        height: 58px;
        margin: 0 5px;
    }

    .tab-counter {
        padding: 8px 15px;
        gap: 6px;
    }

    .counter-label {
        padding: 0 8px;
        margin-right: 3px;
    }

    .counter-label-top {
        font-size: 14px;
        margin-bottom: 1px;
        letter-spacing: 0.5px;
    }

    .counter-label-bottom {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .digit-box {
        min-width: 24px !important;
        width: 24px !important;
        height: 38px !important;
        padding: 7px 4px !important;
    }

    .tab-counter .odometer {
        font-size: 22px !important;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding: 20px 10px;
    }

    .header-center {
        font-size: 14px;
    }
}

/* Tablet and Desktop - Bounties grid responsive */
@media (min-width: 768px) {
    .grid-view.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-view.grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-view.grid-3 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid-view.grid-5 {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1440px) {
    .grid-view.grid-3 {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .grid-view.grid-5 {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1920px) {
    .grid-view.grid-3 {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .grid-view.grid-5 {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* ============================================
   20. TERMS PAGE SPECIFIC
   ============================================ */
.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ============================================
   END OF STYLESHEET
   ============================================ */
