/* ═══════════════════════════════════════════════════════════════
   PAYDIRTY — Cork Board UI
   ═══════════════════════════════════════════════════════════════ */

.pd-board {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 50px 28px 60px;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(140,95,50,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(90,60,30,0.2) 0%, transparent 60%),
        repeating-linear-gradient(
            45deg,
            rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px,
            transparent 1px, transparent 3px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px,
            transparent 1px, transparent 3px
        ),
        #b8935a;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.35);
}

.pd-board::-webkit-scrollbar { width: 10px; }
.pd-board::-webkit-scrollbar-track { background: #6b5030; }
.pd-board::-webkit-scrollbar-thumb {
    background: #3a2810;
    border-radius: 4px;
}

/* Coffee ring stains */
.pd-coffee-stain {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        transparent 40%,
        rgba(50,25,0,0.08) 42%,
        rgba(50,25,0,0.12) 44%,
        rgba(50,25,0,0.08) 48%,
        transparent 55%
    );
    pointer-events: none;
    opacity: 0.7;
}
.pd-coffee-1 { top: 80px; right: 40px; }
.pd-coffee-2 { bottom: 120px; left: 60px; }

/* Title card */
.pd-board-title {
    background: #fafafa;
    color: #2a2015;
    padding: 14px 24px 12px;
    text-align: center;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin: 0 auto 30px;
    max-width: 420px;
    box-shadow:
        2px 4px 8px rgba(0,0,0,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.05);
    position: relative;
    transform: rotate(-0.5deg);
}
.pd-board-title .pd-pushpin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

/* Pushpin */
.pd-pushpin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 35%,
        #ff6060 0%,
        #d42020 40%,
        #8a0000 100%
    );
    box-shadow:
        0 2px 3px rgba(0,0,0,0.5),
        inset -1px -1px 2px rgba(0,0,0,0.4),
        inset 1px 1px 2px rgba(255,255,255,0.5);
    z-index: 3;
}
.pd-pushpin-corner {
    position: absolute;
    top: -6px;
    right: 10px;
}

/* Notes container — natural masonry feel */
.pd-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

.pd-note {
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pd-note:not(.pd-locked):hover {
    transform: rotate(0deg) translateY(-3px) scale(1.03) !important;
    box-shadow: 4px 8px 16px rgba(0,0,0,0.4) !important;
    z-index: 10;
}

/* Tape strip */
.pd-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 50px;
    height: 14px;
    background: rgba(240,230,180,0.6);
    border: 1px solid rgba(180,160,100,0.3);
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.pd-tape-left {
    left: 12px;
    transform: rotate(-8deg);
}

/* ─── Sticky notes ─── */
.pd-sticky {
    width: 180px;
    min-height: 170px;
    padding: 24px 16px 14px;
    box-shadow: 3px 5px 8px rgba(0,0,0,0.25);
    font-family: 'Caveat', 'Permanent Marker', cursive;
    color: #2a2015;
    display: flex;
    flex-direction: column;
}
.pd-sticky-yellow { background: #f5e660; }
.pd-sticky-pink   { background: #ffb0c0; }
.pd-sticky-blue   { background: #80d0f0; }
.pd-sticky-green  { background: #90e8a0; }
.pd-sticky-orange { background: #ffcc80; }

.pd-sticky-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 17px;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.pd-sticky-body {
    font-family: 'Caveat', cursive;
    font-size: 17px;
    line-height: 1.25;
    flex: 1;
    margin-bottom: 8px;
}
.pd-sticky-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px dashed rgba(0,0,0,0.25);
    padding-top: 6px;
}
.pd-sticky-pay {
    font-family: 'Permanent Marker', cursive;
    font-size: 20px;
    color: #1a6030;
}
.pd-sticky-pink .pd-sticky-pay { color: #8a0030; }
.pd-sticky-blue .pd-sticky-pay { color: #1a4a80; }
.pd-sticky-orange .pd-sticky-pay { color: #6a3010; }

.pd-scribble {
    font-family: 'Caveat', cursive;
    font-size: 15px;
    color: #a02020;
    transform: rotate(-2deg);
}

/* ─── Printed flyer ─── */
.pd-flyer {
    width: 260px;
    padding: 18px 22px 16px;
    background: #fafafa;
    border: 1px solid #ccc;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.22);
    font-family: 'Courier Prime', 'Courier New', monospace;
    color: #1a1008;
    position: relative;
}
.pd-corner-tape {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 42px;
    height: 28px;
    background: linear-gradient(
        135deg,
        rgba(240,230,180,0.75) 0%,
        rgba(240,230,180,0.75) 60%,
        transparent 60%
    );
    border: 1px solid rgba(180,160,100,0.3);
    border-right: none;
    border-bottom: none;
}
.pd-flyer-title {
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #1a1008;
    padding-bottom: 6px;
    line-height: 1.3;
}
.pd-flyer-body {
    font-size: 11px;
    line-height: 1.55;
    margin-bottom: 10px;
}
.pd-correction {
    font-family: 'Caveat', cursive;
    font-size: 15px;
    color: #a02020;
    margin-bottom: 8px;
    transform: rotate(-1deg);
}
.pd-flyer-footer {
    border-top: 1px dashed #999;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pd-flyer-pay {
    font-family: 'Special Elite', 'Courier Prime', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #1a6030;
    background: #f4e8c8;
    border: 1px solid #c4b494;
    padding: 3px 10px;
    display: inline-block;
    align-self: flex-start;
}
.pd-flyer-note {
    font-size: 9px;
    font-style: italic;
    color: #6a5a40;
}

/* ─── Torn paper ─── */
.pd-torn {
    width: 200px;
    padding: 18px 16px 6px;
    background: #f8f4e8;
    box-shadow: 3px 5px 8px rgba(0,0,0,0.25);
    font-family: 'Special Elite', 'Courier Prime', monospace;
    color: #1a1008;
    position: relative;
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 88%, 95% 92%, 90% 88%, 85% 94%, 80% 90%,
        75% 95%, 70% 88%, 65% 93%, 60% 90%, 55% 95%, 50% 89%,
        45% 93%, 40% 88%, 35% 94%, 30% 90%, 25% 95%, 20% 89%,
        15% 94%, 10% 90%, 5% 93%, 0% 88%
    );
}
.pd-torn-title {
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    border-bottom: 1px solid #1a1008;
    padding-bottom: 5px;
}
.pd-torn-body {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    line-height: 1.5;
    margin-bottom: 10px;
}
.pd-torn-pay {
    font-family: 'Special Elite', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #1a6030;
    text-align: center;
    margin-bottom: 10px;
}
.pd-tear-tabs {
    display: flex;
    justify-content: space-around;
    gap: 2px;
    padding-top: 4px;
    border-top: 1px dashed #999;
}
.pd-tear-tab {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Courier Prime', monospace;
    font-size: 8px;
    color: #1a1008;
    padding: 4px 2px;
    border-left: 1px dashed #999;
    border-right: 1px dashed #999;
    min-height: 40px;
}
.pd-tear-tab:first-child { border-left: none; }
.pd-tear-tab:last-child { border-right: none; }
.pd-tab-torn {
    opacity: 0.2;
    text-decoration: line-through;
}

/* ─── Locked state ─── */
.pd-locked {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(30%);
}
.pd-locked-stripe {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent 0px, transparent 14px,
        rgba(0,0,0,0.08) 14px, rgba(0,0,0,0.08) 28px
    );
    pointer-events: none;
}

/* ─── Modal (gig detail / receipt) ─── */
.pd-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,10,5,0.65);
    z-index: 100;
    display: none;
}
.pd-modal-overlay.pd-visible { display: block; }

.pd-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92) rotate(-1.5deg);
    width: 380px;
    max-width: 92%;
    z-index: 101;
    display: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}
.pd-modal.pd-visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-1.5deg);
}

.pd-modal-inner {
    position: relative;
    padding: 34px 28px 22px;
    background: #fafafa;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.08),
        0 20px 50px rgba(0,0,0,0.6);
    font-family: 'Caveat', cursive;
    color: #2a2015;
}

/* Color variants */
.pd-modal-sticky .pd-modal-inner { font-family: 'Caveat', cursive; }
.pd-modal-yellow .pd-modal-inner { background: #f5e660; }
.pd-modal-pink   .pd-modal-inner { background: #ffb0c0; }
.pd-modal-blue   .pd-modal-inner { background: #80d0f0; }
.pd-modal-green  .pd-modal-inner { background: #90e8a0; }
.pd-modal-orange .pd-modal-inner { background: #ffcc80; }

.pd-modal-flyer .pd-modal-inner {
    background: #fafafa;
    border: 1px solid #ccc;
    font-family: 'Courier Prime', monospace;
}

.pd-modal-torn .pd-modal-inner {
    background: #f8f4e8;
    font-family: 'Special Elite', monospace;
}

.pd-modal-tape {
    top: -10px;
    left: 50%;
    width: 70px;
    height: 16px;
}

.pd-modal-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-family: 'Permanent Marker', cursive;
    font-size: 24px;
    color: #2a2015;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 2;
}
.pd-modal-close:hover { color: #a02020; }

.pd-modal-header {
    font-family: 'Courier Prime', monospace;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #6a5a40;
    text-align: center;
    margin-bottom: 4px;
}
.pd-modal-rule {
    border-top: 1px dashed rgba(0,0,0,0.3);
    margin-bottom: 14px;
}

.pd-modal-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 12px;
    text-align: center;
}
.pd-modal-flyer .pd-modal-title {
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #1a1008;
    padding-bottom: 6px;
}
.pd-modal-torn .pd-modal-title {
    font-family: 'Special Elite', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #1a1008;
    padding-bottom: 6px;
}

.pd-modal-body {
    font-family: 'Caveat', cursive;
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 14px;
    padding: 0 4px;
}
.pd-modal-flyer .pd-modal-body,
.pd-modal-torn .pd-modal-body {
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    line-height: 1.6;
}

.pd-modal-scribble {
    font-family: 'Caveat', cursive;
    font-size: 16px;
    color: #a02020;
    transform: rotate(-2deg);
    margin-bottom: 10px;
    text-align: center;
}
.pd-modal-scribble-center { transform: rotate(0); }

.pd-modal-note {
    font-family: 'Courier Prime', monospace;
    font-size: 9px;
    font-style: italic;
    color: #6a5a40;
    margin-bottom: 10px;
    text-align: center;
}
.pd-modal-correction {
    font-family: 'Caveat', cursive;
    font-size: 16px;
    color: #a02020;
    transform: rotate(-1deg);
    margin-bottom: 10px;
    text-align: center;
}

.pd-modal-pay-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 14px 0;
    padding: 10px 0;
    border-top: 1px dashed rgba(0,0,0,0.3);
    border-bottom: 1px dashed rgba(0,0,0,0.3);
}
.pd-modal-pay-label {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #6a5a40;
    text-transform: uppercase;
}
.pd-modal-pay-value {
    font-family: 'Permanent Marker', cursive;
    font-size: 26px;
    color: #1a6030;
}
.pd-modal-pink .pd-modal-pay-value { color: #8a0030; }
.pd-modal-blue .pd-modal-pay-value { color: #1a4a80; }
.pd-modal-orange .pd-modal-pay-value { color: #6a3010; }

.pd-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}
.pd-btn {
    font-family: 'Permanent Marker', cursive;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 9px 22px;
    cursor: pointer;
    border: 2px solid #2a2015;
    background: rgba(255,255,255,0.5);
    color: #2a2015;
    transition: all 0.2s;
    text-transform: uppercase;
}
.pd-btn:hover { background: #2a2015; color: #fafafa; }
.pd-btn-accept {
    background: #2a2015;
    color: #fafafa;
}
.pd-btn-accept:hover { background: #1a6030; border-color: #1a6030; }
.pd-btn-decline:hover { background: #a02020; border-color: #a02020; color: #fafafa; }

.pd-modal-footer-note {
    font-family: 'Courier Prime', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-align: center;
    color: #6a5a40;
    text-transform: uppercase;
    font-style: italic;
}

.pd-modal-payout {
    font-family: 'Permanent Marker', cursive;
    font-size: 44px;
    color: #1a6030;
    text-align: center;
    margin: 18px 0 10px;
}

.pd-modal-stamp-taken {
    position: absolute;
    top: 40px;
    right: 16px;
    font-family: 'Permanent Marker', cursive;
    font-size: 30px;
    color: #a02020;
    border: 4px double #a02020;
    padding: 4px 14px;
    letter-spacing: 0.15em;
    transform: rotate(-14deg);
    opacity: 0.55;
    pointer-events: none;
}

/* ─── Disclaimer card ─── */
.pd-disclaimer {
    margin: 40px auto 0;
    max-width: 520px;
    padding: 14px 18px;
    background: #fafafa;
    border: 1px solid #ccc;
    font-family: 'Courier Prime', monospace;
    font-size: 9px;
    line-height: 1.55;
    color: #4a3020;
    text-align: center;
    box-shadow: 2px 3px 6px rgba(0,0,0,0.2);
    transform: rotate(0.5deg);
}
