* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #2d5a27 0%, #1a3d15 100%);
    min-height: 100vh;
    color: #fff;
    image-rendering: pixelated;
}

#game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
}

#header h1 {
    font-size: 24px;
    text-shadow: 2px 2px 0 #000;
    color: #90EE90;
}

#stats {
    display: flex;
    gap: 20px;
    font-size: 18px;
}

#sheckles-display {
    color: #FFD700;
    text-shadow: 1px 1px 0 #000;
}

#pet-bonus-display {
    color: #FF69B4;
    text-shadow: 1px 1px 0 #000;
}

#main-area {
    display: flex;
    gap: 10px;
    flex: 1;
}

#garden-container {
    flex: 1;
    background: rgba(139, 90, 43, 0.6);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #5a3d2b;
    position: relative;
}

#garden-canvas {
    background: #3d2817;
    border: 2px solid #2a1a0f;
    cursor: pointer;
}

#sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.panel h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #90EE90;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

#seed-inventory {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
}

/* Harvest Inventory */
#harvest-inventory {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 120px;
    overflow-y: auto;
}

.harvest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(255, 200, 100, 0.15);
    border: 1px solid rgba(255, 200, 100, 0.3);
    border-radius: 4px;
}

.harvest-item.mutated {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: mutatedItemGlow 2s infinite;
}

@keyframes mutatedItemGlow {
    0%, 100% { box-shadow: 0 0 3px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }
}

.harvest-name {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.harvest-count {
    font-size: 12px;
    color: #FFD700;
}

.seed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.seed-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.seed-item.selected {
    background: rgba(144, 238, 144, 0.3);
    border: 1px solid #90EE90;
}

.seed-name {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seed-icon {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    vertical-align: middle;
}

.seed-emoji {
    font-size: 16px;
    line-height: 1;
}

.seed-count {
    font-size: 12px;
    color: #aaa;
}

/* Picked Plants */
#picked-plants-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 120px;
    overflow-y: auto;
}

.picked-plant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.picked-plant-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.picked-plant-item.selected {
    background: rgba(100, 200, 255, 0.3);
    border: 1px solid #64C8FF;
}

.picked-plant-name {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.picked-plant-progress {
    font-size: 11px;
    color: #90EE90;
}

.panel-hint {
    font-size: 10px;
    color: #666;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

#pets-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
}

.pet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
}

.pet-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pet-item.pet-roaming {
    border: 1px solid #4CAF50;
    background: rgba(76, 175, 80, 0.2);
}

.pet-icon {
    width: 24px;
    height: 24px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-icon-img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    border-radius: 4px;
}

.pet-info {
    font-size: 11px;
}

.pet-bonus {
    color: #90EE90;
}

#footer {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    justify-content: center;
}

button {
    font-family: 'Courier New', monospace;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.2s;
}

#shop-btn {
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: 2px solid #B8860B;
}

#shop-btn:hover {
    background: linear-gradient(180deg, #FFA500 0%, #FF8C00 100%);
    transform: scale(1.05);
}

#harvest-all-btn {
    background: linear-gradient(180deg, #90EE90 0%, #32CD32 100%);
    color: #000;
    border: 2px solid #228B22;
}

#harvest-all-btn:hover {
    background: linear-gradient(180deg, #32CD32 0%, #228B22 100%);
    transform: scale(1.05);
}

/* Shop Styles */
#shop-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#shop-container.hidden {
    display: none;
}

#shop-panel {
    background: linear-gradient(180deg, #4a3728 0%, #2d1f15 100%);
    border: 4px solid #8B4513;
    border-radius: 12px;
    padding: 20px;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

#shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#shop-header h2 {
    color: #FFD700;
    text-shadow: 2px 2px 0 #000;
}

#close-shop-btn {
    background: #8B0000;
    color: #fff;
    width: 30px;
    height: 30px;
    padding: 0;
    font-weight: bold;
}

#close-shop-btn:hover {
    background: #B22222;
}

#steven-dialogue {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#steven-portrait {
    width: 64px;
    height: 64px;
    background: #6B4423;
    border: 2px solid #8B4513;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

#steven-portrait::after {
    content: "S";
    color: #FFD700;
    text-shadow: 1px 1px 0 #000;
}

#steven-text {
    flex: 1;
    font-size: 14px;
    font-style: italic;
    color: #DDD;
}

#shop-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.shop-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid transparent;
}

.shop-tab.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
}

.shop-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.shop-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-section.hidden {
    display: none;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.shop-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shop-item-name {
    font-weight: bold;
    font-size: 14px;
}

.shop-item-desc {
    font-size: 11px;
    color: #aaa;
}

.shop-item-price {
    color: #FFD700;
    font-size: 14px;
}

.buy-btn {
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
}

.buy-btn:hover {
    background: linear-gradient(180deg, #388E3C 0%, #2E7D32 100%);
}

.buy-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Shrink button styles */
.shrink-item {
    border: 1px solid #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}

.shrink-btn {
    background: linear-gradient(180deg, #ff6b6b 0%, #c0392b 100%) !important;
}

.shrink-btn:hover {
    background: linear-gradient(180deg, #c0392b 0%, #922b21 100%) !important;
}

.shop-item-price.refund {
    color: #90EE90;
}

/* Shop catalog styles */
.shop-rarity-header {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
}

.shop-item.out-of-stock {
    opacity: 0.4;
}

.stock-label {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.stock-label.in-stock {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

.stock-label.no-stock {
    color: #888;
    background: rgba(255, 255, 255, 0.05);
}

/* Sell section styles */
.sell-empty {
    text-align: center;
    padding: 20px;
    color: #888;
}

.sell-hint {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.sell-item {
    border: 1px solid #90EE90 !important;
    background: rgba(144, 238, 144, 0.1) !important;
}

.picked-sell-item {
    border: 1px solid #64C8FF !important;
    background: rgba(100, 200, 255, 0.1) !important;
}

.harvest-sell-item {
    border: 1px solid #FFD700 !important;
    background: rgba(255, 215, 0, 0.1) !important;
}

.harvest-price {
    color: #FFD700 !important;
}

.sell-divider {
    text-align: center;
    color: #888;
    font-size: 11px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
}

.sell-divider span {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 10px;
    border-radius: 4px;
}

.sell-price {
    color: #90EE90 !important;
}

.sell-btn {
    background: linear-gradient(180deg, #90EE90 0%, #32CD32 100%) !important;
    color: #000 !important;
}

.sell-btn:hover {
    background: linear-gradient(180deg, #32CD32 0%, #228B22 100%) !important;
}

.sell-all-btn {
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000 !important;
}

.sell-all-btn:hover {
    background: linear-gradient(180deg, #FFA500 0%, #FF8C00 100%) !important;
}

/* Limited Shop Styles */
.limited-empty {
    text-align: center;
    padding: 20px;
    color: #888;
}

.limited-hint {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.limited-item {
    border: 2px solid #FF1493 !important;
    background: rgba(255, 20, 147, 0.1) !important;
}

.limited-stock {
    font-size: 10px;
    color: #FF69B4;
}

.limited-buy {
    background: linear-gradient(180deg, #FF1493 0%, #C71585 100%) !important;
}

.limited-buy:hover {
    background: linear-gradient(180deg, #C71585 0%, #8B008B 100%) !important;
}

/* Command Input */
/* Operator Console */
#console-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#console-container.hidden {
    display: none;
}

#console-panel {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 4px solid #00ff00;
    border-radius: 12px;
    padding: 20px;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

#console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#console-header h2 {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-family: 'Courier New', monospace;
}

#close-console-btn {
    background: #8B0000;
    color: #fff;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#close-console-btn:hover {
    background: #a00;
}

#command-output-log {
    flex: 1;
    min-height: 200px;
    max-height: 400px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ff00;
    border-radius: 4px;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff00;
    white-space: pre-wrap;
    margin-bottom: 15px;
}

#command-output-log .log-entry {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

#command-output-log .log-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#command-output-log .log-command {
    color: #888;
    margin-bottom: 4px;
}

#command-output-log .log-result {
    color: #00ff00;
}

#command-output-log .log-result.error {
    color: #ff4444;
}

#console-btn {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 2px solid #00ff00;
    color: #00ff00;
}

#console-btn:hover {
    background: linear-gradient(180deg, #2a2a4e 0%, #1f1f3a 100%);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

#command-input-container {
    display: flex;
    gap: 5px;
}

#command-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px 12px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

#command-input:focus {
    outline: none;
    border-color: #FFD700;
}

#command-send-btn {
    background: linear-gradient(180deg, #666 0%, #444 100%);
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
}

#command-send-btn:hover {
    background: linear-gradient(180deg, #777 0%, #555 100%);
}

#command-output {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    font-size: 11px;
    color: #0f0;
    white-space: pre-wrap;
    max-height: 100px;
    overflow-y: auto;
}

#command-output.hidden {
    display: none;
}

#command-output.error {
    color: #f00;
}

/* Notification */
#notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    border: 2px solid #FFD700;
    z-index: 200;
    animation: slideUp 0.3s ease;
}

#notification.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Rarity Colors */
.rarity-common { color: #9E9E9E; }
.rarity-rare { color: #4CAF50; }
.rarity-legendary { color: #2196F3; }
.rarity-mythical { color: #9C27B0; }
.rarity-divine { color: #FFD700; }
.rarity-prismatic {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rarity-transcendent {
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff;
}
.rarity-godly {
    color: #1a1a2e;
    text-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700;
    -webkit-text-stroke: 1px #FFD700;
}
.rarity-limited {
    color: #FF1493;
    text-shadow: 0 0 8px #FF1493, 0 0 16px #FF69B4, 0 0 24px #FFD700;
    animation: limitedPulse 2s infinite;
}
@keyframes limitedPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.rarity-universal {
    background: linear-gradient(90deg, #FFD700, #FFFFFF, #87CEEB, #FFFFFF, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: universalShimmer 3s infinite;
    background-size: 200% 100%;
}
@keyframes universalShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Login Screen */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5a27 0%, #1a3d15 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#login-screen.hidden {
    display: none;
}

#login-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 4px solid #8B4513;
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    max-width: 90%;
    text-align: center;
}

#login-panel h1 {
    color: #90EE90;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 10px;
    font-size: 32px;
}

.login-subtitle {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 30px;
}

.version-number {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

#footer .version-number {
    color: #555;
    font-size: 11px;
    margin-left: auto;
    align-self: center;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #90EE90;
    font-size: 12px;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #90EE90;
}

.form-group input::placeholder {
    color: #666;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #90EE90 0%, #32CD32 100%);
    color: #000;
    border: 2px solid #228B22;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

.login-btn:hover {
    background: linear-gradient(180deg, #32CD32 0%, #228B22 100%);
    transform: scale(1.02);
}

.switch-link {
    color: #888;
    font-size: 12px;
    margin-top: 20px;
}

.switch-link a {
    color: #90EE90;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

#login-error {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #f00;
    border-radius: 4px;
    color: #ff6b6b;
    font-size: 12px;
}

#login-error.hidden {
    display: none;
}

#profile-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

#profile-display {
    color: #90EE90;
    font-size: 14px;
    text-shadow: 1px 1px 0 #000;
}

#signout-btn {
    background: linear-gradient(180deg, #666 0%, #444 100%);
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    border: 1px solid #333;
}

#signout-btn:hover {
    background: linear-gradient(180deg, #888 0%, #555 100%);
}

/* 3D Plant Viewer */
#viewer-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 150;
}

#viewer-3d-container.hidden {
    display: none;
}

#viewer-3d-panel {
    background: linear-gradient(180deg, #2a2a4a 0%, #1a1a2e 100%);
    border: 4px solid #4a4a8a;
    border-radius: 16px;
    padding: 30px;
    width: 450px;
    max-width: 90%;
    text-align: center;
    position: relative;
}

#viewer-3d-panel h2 {
    color: #90EE90;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 20px;
}

#close-viewer-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8B0000;
    color: #fff;
    width: 30px;
    height: 30px;
    padding: 0;
    font-weight: bold;
    border-radius: 4px;
}

#close-viewer-btn:hover {
    background: #B22222;
}

#viewer-3d-scene {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    perspective: 600px;
    perspective-origin: 50% 50%;
}

#viewer-3d-plant {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    filter: drop-shadow(0 0 20px var(--rarity-glow, #fff));
}

.plant-3d-face {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 50px;
    top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 64px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backface-visibility: visible;
}

.plant-3d-icon {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
}

.plant-3d-face.front {
    transform: translateZ(50px);
}

.plant-3d-face.back {
    transform: rotateY(180deg) translateZ(50px);
}

.plant-3d-face.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.plant-3d-face.right {
    transform: rotateY(90deg) translateZ(50px);
}

.plant-3d-face.top {
    transform: rotateX(90deg) translateZ(50px);
}

.plant-3d-face.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}

#viewer-3d-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.viewer-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.viewer-info-row:last-child {
    margin-bottom: 0;
}

.viewer-info-label {
    color: #888;
    font-size: 12px;
}

.viewer-info-value {
    font-size: 12px;
    font-weight: bold;
}

.viewer-hint {
    color: #666;
    font-size: 11px;
    font-style: italic;
}

/* Event Display */
#event-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    transition: all 0.3s ease;
}

#event-display.event-active {
    border-color: #FFD700;
    animation: eventGlow 2s infinite;
}

#event-display.multi-event {
    border-color: #FF69B4;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.3), rgba(138, 43, 226, 0.3));
    animation: multiEventGlow 1.5s infinite;
}

#event-display.multi-event .multi-event-name {
    background: linear-gradient(90deg, #FF69B4, #FFD700, #7FFFD4, #9400D3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

@keyframes eventGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
}

@keyframes multiEventGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 105, 180, 0.4), 0 0 15px rgba(138, 43, 226, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 105, 180, 0.7), 0 0 30px rgba(138, 43, 226, 0.5); }
}

.event-emoji {
    font-size: 18px;
}

.event-name {
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
}

.event-timer {
    color: #aaa;
    font-size: 12px;
    font-family: monospace;
}

/* Mutation Styles */
.mutated-harvest {
    border: 2px solid #FFD700 !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%) !important;
    animation: mutationShine 3s infinite;
}

@keyframes mutationShine {
    0%, 100% { box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.4); }
}

.mutated-price {
    color: #FFD700 !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Mutation-specific colors */
.mutation-gold { color: #FFD700; }
.mutation-diamond { color: #B9F2FF; text-shadow: 0 0 5px #B9F2FF; }
.mutation-windstruck { color: #87CEEB; }
.mutation-flame { color: #FF4500; text-shadow: 0 0 5px #FF4500; }
.mutation-moonlighted { color: #C0C0FF; text-shadow: 0 0 8px #C0C0FF; }
.mutation-aurora {
    background: linear-gradient(90deg, #7FFFD4, #00CED1, #48D1CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mutation-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 2s infinite linear;
}
@keyframes rainbowShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
.mutation-galaxy {
    color: #9400D3;
    text-shadow: 0 0 10px #9400D3, 0 0 20px #4B0082;
}
.mutation-universal {
    color: #FFFFFF;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #FFD700;
    animation: universalPulse 1s infinite;
}
@keyframes universalPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

/* Harvest inventory mutations display */
.harvest-mutation-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 5px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

/* Emergency Lockdown Screen */
#lockdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lockdown-screen.hidden {
    display: none;
}

#lockdown-panel {
    background: rgba(20, 0, 0, 0.9);
    border: 4px solid #8B0000;
    border-radius: 12px;
    padding: 40px;
    width: 380px;
    max-width: 90%;
    text-align: center;
}

#lockdown-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

#lockdown-panel h2 {
    color: #ff4444;
    text-shadow: 0 0 10px #ff0000;
    font-size: 28px;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.lockdown-message {
    color: #666;
    font-size: 13px;
    margin-bottom: 25px;
}

#lockdown-password {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #8B0000;
    border-radius: 6px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-align: center;
}

#lockdown-password:focus {
    outline: none;
    border-color: #ff4444;
}

#lockdown-password::placeholder {
    color: #444;
}

#lockdown-unlock-btn {
    background: linear-gradient(180deg, #8B0000 0%, #5a0000 100%);
    border-color: #ff4444;
    color: #ff4444;
    margin-top: 15px;
}

#lockdown-unlock-btn:hover {
    background: linear-gradient(180deg, #a00000 0%, #700000 100%);
}

#lockdown-error {
    margin-top: 12px;
    padding: 8px;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid #8B0000;
    border-radius: 4px;
    color: #ff4444;
    font-size: 12px;
}

#lockdown-error.hidden {
    display: none;
}

/* ─── Rafael's Gear Shop ─── */

#gear-shop-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#gear-shop-container.hidden {
    display: none;
}

#gear-shop-panel {
    background: linear-gradient(180deg, #2a3a4a 0%, #152030 100%);
    border: 4px solid #4682B4;
    border-radius: 12px;
    padding: 20px;
    width: 520px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

#gear-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#gear-shop-header h2 {
    color: #4682B4;
    text-shadow: 2px 2px 0 #000;
}

#close-gear-shop-btn {
    background: #8B0000;
    color: #fff;
    width: 30px;
    height: 30px;
    padding: 0;
    font-weight: bold;
}

#close-gear-shop-btn:hover {
    background: #B22222;
}

#rafael-dialogue {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#rafael-portrait {
    width: 64px;
    height: 64px;
    background: #2a4a6a;
    border: 2px solid #4682B4;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

#rafael-portrait::after {
    content: "R";
    color: #4682B4;
    text-shadow: 1px 1px 0 #000;
}

#rafael-text {
    flex: 1;
    font-size: 14px;
    font-style: italic;
    color: #DDD;
}

#gear-shop-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.gear-shop-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid transparent;
    padding: 10px 8px;
    font-size: 12px;
}

.gear-shop-tab.active {
    background: rgba(70, 130, 180, 0.25);
    border-color: #4682B4;
    color: #4682B4;
}

.gear-shop-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gear-shop-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gear-shop-section.hidden {
    display: none;
}

.gear-shop-item {
    border: 1px solid rgba(70, 130, 180, 0.3) !important;
}

.gear-shop-item:hover {
    border-color: rgba(70, 130, 180, 0.6) !important;
}

.gear-item-name {
    color: #87CEEB;
}

/* Gear Shop Button */
#gear-shop-btn {
    background: linear-gradient(180deg, #4682B4 0%, #2a5a8a 100%);
    color: #fff;
    border: 2px solid #2a5a8a;
}

#gear-shop-btn:hover {
    background: linear-gradient(180deg, #2a5a8a 0%, #1a3a5a 100%);
    transform: scale(1.05);
}

/* Gear Inventory Panel */
#gear-inventory {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
}

.gear-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(70, 130, 180, 0.15);
    border-radius: 4px;
    border: 1px solid transparent;
    transition: background 0.2s;
}

.gear-item:hover {
    background: rgba(70, 130, 180, 0.25);
}

.gear-item.selected {
    background: rgba(70, 130, 180, 0.3);
    border: 1px solid #4682B4;
}

.gear-name {
    font-size: 12px;
    color: #87CEEB;
}

.gear-count {
    font-size: 12px;
    color: #aaa;
}

.gear-status {
    font-size: 11px;
    color: #90EE90;
}

.farmer-status .gear-status {
    color: #90EE90;
}

/* Farmer Name Prompt */
#farmer-name-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#farmer-name-container.hidden {
    display: none;
}

#farmer-name-panel {
    background: linear-gradient(180deg, #2a3a4a 0%, #152030 100%);
    border: 4px solid #4682B4;
    border-radius: 12px;
    padding: 30px;
    width: 350px;
    max-width: 90%;
    text-align: center;
}

#farmer-name-panel h3 {
    color: #4682B4;
    margin-bottom: 20px;
    font-size: 18px;
}

#farmer-name-panel .login-btn {
    background: linear-gradient(180deg, #4682B4 0%, #2a5a8a 100%);
    border-color: #2a5a8a;
    color: #fff;
}

#farmer-name-panel .login-btn:hover {
    background: linear-gradient(180deg, #2a5a8a 0%, #1a3a5a 100%);
}

/* Farmer Crop Picker */
#farmer-crop-picker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#farmer-crop-picker.hidden {
    display: none;
}

#farmer-crop-panel {
    background: linear-gradient(180deg, #2a3a4a 0%, #152030 100%);
    border: 4px solid #4682B4;
    border-radius: 12px;
    padding: 24px;
    width: auto;
    min-width: 300px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

#farmer-crop-panel h3 {
    color: #4682B4;
    margin-bottom: 8px;
    font-size: 18px;
}

#farmer-crop-grid {
    display: grid;
    gap: 3px;
    margin-top: 8px;
}

.farmer-tile-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    background: rgba(60, 40, 20, 0.6);
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.farmer-tile-btn:hover {
    border-color: #4682B4;
    background: rgba(70, 130, 180, 0.2);
}

.farmer-tile-btn.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.25);
    box-shadow: inset 0 0 8px rgba(76, 175, 80, 0.3);
}

.farmer-tile-btn.empty {
    background: rgba(30, 20, 10, 0.4);
}

.farmer-tile-btn.structure {
    background: rgba(50, 80, 120, 0.4);
}

.farmer-tile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.farmer-action-btn {
    background: linear-gradient(180deg, #4682B4 0%, #2a5a8a 100%);
    border: 1px solid #2a5a8a;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.farmer-action-btn:hover {
    background: linear-gradient(180deg, #2a5a8a 0%, #1a3a5a 100%);
}

.farmer-tile-count {
    font-size: 11px;
    color: #aaa;
}

#farmer-crop-done-btn {
    background: linear-gradient(180deg, #4682B4 0%, #2a5a8a 100%);
    border-color: #2a5a8a;
    color: #fff;
}

#farmer-crop-done-btn:hover {
    background: linear-gradient(180deg, #2a5a8a 0%, #1a3a5a 100%);
}

/* Farmer controls overlay on map */
#farmer-controls {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    font-size: 13px;
    white-space: nowrap;
}

#farmer-controls.hidden {
    display: none;
}

#farmer-controls-name {
    font-weight: bold;
    color: #90EE90;
}

#farmer-controls-status {
    color: #aaa;
    font-size: 11px;
}

#farmer-vacation-btn,
#farmer-fire-btn {
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid #666;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-family: 'Courier New', monospace;
}

#farmer-vacation-btn {
    background: #8a6d3b;
}

#farmer-vacation-btn:hover {
    background: #a0813f;
}

#farmer-vacation-btn.on-vacation {
    background: #4a7c3f;
}

#farmer-vacation-btn.on-vacation:hover {
    background: #5a9c4f;
}

#farmer-fire-btn {
    background: #8b2020;
}

#farmer-fire-btn:hover {
    background: #a52828;
}

/* ─── Cosmetics VIP Shop ─── */

#cosmetics-shop-btn {
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border-color: #444;
    color: #888;
}

#cosmetics-shop-btn.vip-unlocked {
    background: linear-gradient(180deg, #9B59B6 0%, #6C3483 100%);
    border-color: #6C3483;
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#cosmetics-shop-btn.vip-unlocked:hover {
    background: linear-gradient(180deg, #AF7AC5 0%, #7D3C98 100%);
}

#cosmetics-shop-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#cosmetics-shop-container.hidden {
    display: none;
}

#cosmetics-shop-panel {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    border: 2px solid #9B59B6;
    border-radius: 12px;
    padding: 20px;
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

#cosmetics-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#cosmetics-shop-header h2 {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#cosmetics-shop-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#cosmetics-dialogue {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

#cosmetics-portrait {
    width: 40px;
    height: 40px;
    background: #9B59B6;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

#cosmetics-text {
    display: inline;
    font-style: italic;
    color: #ddd;
}

#cosmetics-shop-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.cosmetics-shop-tab {
    flex: 1;
    padding: 8px;
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.4);
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.cosmetics-shop-tab.active {
    background: rgba(155, 89, 182, 0.5);
    color: #FFD700;
    border-color: #9B59B6;
}

.cosmetics-shop-tab:hover {
    background: rgba(155, 89, 182, 0.4);
}

.cosmetics-shop-section.hidden {
    display: none;
}

.cosmetic-name {
    color: #E8DAEF !important;
}

.luck-status-bar {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid #4CAF50;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 10px;
    color: #90EE90;
    font-size: 13px;
    text-align: center;
}

.cosmetic-buy-btn {
    font-family: 'Courier New', monospace;
}

/* ─── Mutation Adder Modal ─── */

#mutation-adder-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#mutation-adder-container.hidden {
    display: none;
}

#mutation-adder-panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #9B59B6;
    border-radius: 12px;
    padding: 20px;
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

#mutation-adder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#mutation-adder-header h3 {
    color: #FFD700;
}

#mutation-adder-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

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

.mutation-picker-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: background 0.2s;
}

.mutation-picker-btn:hover {
    background: rgba(155, 89, 182, 0.3);
    border-color: #9B59B6;
}

/* ─── Share Codes Modal ─── */

#sharing-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#sharing-container.hidden {
    display: none;
}

#sharing-panel {
    background: linear-gradient(135deg, #1a2a1a 0%, #2d4a2d 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 20px;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

#sharing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#sharing-header h2 {
    color: #4CAF50;
    font-size: 20px;
}

#sharing-header button {
    background: none;
    border: 1px solid #666;
    color: #aaa;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

#sharing-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.sharing-tab {
    flex: 1;
    padding: 8px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 6px;
    color: #aaa;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.sharing-tab.active {
    background: rgba(76, 175, 80, 0.5);
    color: #FFD700;
    border-color: #4CAF50;
}

.sharing-tab:hover {
    background: rgba(76, 175, 80, 0.4);
}

.sharing-section.hidden {
    display: none;
}

.sharing-block {
    margin-bottom: 15px;
}

.sharing-block h3 {
    color: #8BC34A;
    font-size: 14px;
    margin-bottom: 5px;
}

.sharing-desc {
    color: #888;
    font-size: 11px;
    margin-bottom: 10px;
}

.sharing-divider {
    border-top: 1px solid rgba(76, 175, 80, 0.3);
    margin: 15px 0;
}

.sharing-action-btn {
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
    border: 1px solid #66BB6A;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    width: 100%;
    margin-top: 8px;
}

.sharing-action-btn:hover {
    background: linear-gradient(180deg, #66BB6A 0%, #43A047 100%);
}

.sharing-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.share-code-textarea {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #555;
    border-radius: 6px;
    color: #ccc;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    padding: 8px;
    resize: vertical;
    margin-top: 8px;
}

.share-code-textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.sharing-copy-btn {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid #4CAF50;
    color: #8BC34A;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    margin-top: 5px;
}

.sharing-copy-btn:hover {
    background: rgba(76, 175, 80, 0.5);
}

.sharing-status {
    margin-top: 8px;
    padding: 6px;
    border-radius: 4px;
    font-size: 11px;
}

.sharing-status.error {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6666;
}

.sharing-status.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #8BC34A;
}

/* Gift builder */

.gift-category {
    margin-bottom: 12px;
}

.gift-category-header {
    color: #8BC34A;
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: bold;
}

.gift-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 3px;
}

.gift-item-name {
    color: #ccc;
    font-size: 11px;
}

.gift-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gift-controls button {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid #4CAF50;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-controls button:hover {
    background: rgba(76, 175, 80, 0.5);
}

.gift-count {
    color: #FFD700;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.gift-number-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #555;
    border-radius: 4px;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 4px 8px;
    width: 120px;
}

.gift-number-input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* ─── Visit Viewer ─── */

#visit-viewer-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#visit-viewer-container.hidden {
    display: none;
}

#visit-viewer-panel {
    background: linear-gradient(135deg, #1a2a1a 0%, #2d4a2d 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

#visit-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#visit-viewer-header h2 {
    color: #4CAF50;
    font-size: 18px;
}

#visit-viewer-header button {
    background: none;
    border: 1px solid #666;
    color: #aaa;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

#visit-viewer-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

#visit-canvas {
    border: 1px solid #4CAF50;
    border-radius: 4px;
}

#visit-sidebar {
    min-width: 200px;
    max-width: 250px;
    max-height: 500px;
    overflow-y: auto;
}

.visit-panel {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.visit-panel h3 {
    color: #8BC34A;
    font-size: 13px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    padding-bottom: 4px;
}

.visit-stat {
    color: #ccc;
    font-size: 11px;
    margin-bottom: 3px;
}

.visit-subheader {
    color: #8BC34A;
    font-size: 11px;
    font-weight: bold;
    margin-top: 6px;
    margin-bottom: 3px;
}

.visit-item {
    color: #ccc;
    font-size: 11px;
    margin-bottom: 2px;
}

#sharing-btn {
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
    border-color: #66BB6A;
    color: #fff;
}
