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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000, #000);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

/* Early Adopter Banner */
.early-adopter-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fcf095);
    color: #000;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-text {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

.banner-text strong {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 1px;
}

.banner-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.banner-close:hover {
    background: rgba(0,0,0,0.1);
}

/* Adjust body padding when banner is shown */
body.banner-active {
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* App Header */
.app-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-logo {
    max-width: 80px;
    height: auto;
    opacity: 0.9;
}

.app-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}


h2 {
    text-align: center;
    font-family: arial;
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.3rem;
}

h3 {
    text-align: center;
    font-family: arial;
    margin-bottom: 0px;
    color: #44b5b7;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.upload-section {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed #4ecdc4;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: none;
}

.upload-section:hover {
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
}

.upload-section.dragover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.02);
}

.chopper-controls {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid #4ecdc4;
    padding: 30px;
    margin-bottom: 30px;
}

.controls-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.header-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.header-left-buttons {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.header-left-buttons .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.app-header {
    text-align: center;
    margin: 0px 0;
}

.app-header h1 {
    margin-bottom: 5px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.app-header h5 {
    margin: -8px;
    color: #4a8b9b;
    font-weight: normal;
    font-size: 1.2rem;
}

.parent-company {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0px;
    font-size: 1rem;
    color: #7f7f7fa3;
    font-weight: 300;
}

.hayzer-text, .apps-text {
    font-size: 1rem;
    color: #888;
}

.lightning svg {
    width: 18px;
    height: 18px;
    color: #ffff00;
}

/* BPM +/- Button Styling */
.bpm-input-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bpm-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bpm-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #4ecdc4;
    color: #4ecdc4;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.bpm-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: scale(1.05);
}

.bpm-btn:active {
    background: rgba(78, 205, 196, 0.3);
    transform: scale(0.95);
}

/* Slice Duration +/- Button Styling */
.slice-input-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.slice-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.slice-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #4ecdc4;
    color: #4ecdc4;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.slice-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: scale(1.05);
}

.slice-btn:active {
    background: rgba(78, 205, 196, 0.3);
    transform: scale(0.95);
}

.bpm-display {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ccc;
    cursor: default;
    text-align: center;
    min-width: 80px;
}

.bpm-display:focus {
    outline: none;
    box-shadow: none;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.endpoint-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.endpoint-control label {

    color: #dadada;

}

.endpoint-input {
    padding: 12px 16px;
    border: 2px solid #4ecdc4;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 18px;
    font-weight: bold;
    width: 100px;
    text-align: center;
    transition: all 0.2s ease;
}

.endpoint-input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

.waveform-container {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid #ffffff;
    padding: 20px 20px 40px 20px;
    margin-bottom: 30px;
    position: relative;
    min-height: 300px;
}

.waveform-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #dadada;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
}

.view-indicator {
    font-weight: bold;
}

.zoom-hint {
    font-style: italic;
    opacity: 0.8;
}


.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
}

.waveform-canvas {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.sliding-window {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(78, 205, 196, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    pointer-events: auto;
    cursor: grab;
    z-index: 10;
}

.sliding-window:active {
    cursor: grabbing;
}

.sliding-window.dragging {
    background: rgba(78, 205, 196, 0.5);
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.6);
    transform: scale(1.02);
}

.sliding-window.playing {
    border-color: rgba(255, 0, 0, 0.7) !important;
    transform: scale(1.03);
    transition: all 0.1s ease;
}

.sliding-window.looping {
    background: rgba(255, 107, 107, 0.4) !important;
    border-color: rgba(255, 0, 0, 0.8) !important;
    transform: scale(1.03);
    transition: all 0.1s ease;
    animation: looping-pulse 1s ease-in-out infinite alternate;
}

.sliding-window.snapped {
    border-color: rgba(78, 205, 196, 1) !important;
    box-shadow: 0 0 12px rgba(78, 205, 196, 0.8);
    transform: scale(1.01);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress Bar inside sliding window */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 0, 0.4); /* Opacitated yellow */
    pointer-events: none;
    transition: none; /* No transition for smooth animation control */
    display: none; /* Hidden by default */
    z-index: 1; /* Above waveform, below handles */
}

@keyframes looping-pulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 107, 107, 0.9);
    }
}

.resize-handle {
    position: absolute;
    top: 0;
    right: -3px;
    width: 6px;
    height: 100%;
    background: #ff6b6b;
    cursor: ew-resize;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 0 4px 4px 0;
}

.sliding-window:hover .resize-handle {
    opacity: 0.8;
}

.resize-handle:hover {
    opacity: 1;
    background: #ff5252;
}

.resize-handle.resizing {
    opacity: 1;
    background: #ff5252;
}

.drag-handle {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 16px;
    background: #f3f4f4;
    border-radius: 4px;
    cursor: grab;
    opacity: 0.8;
    transition: all 0.2s ease;
    transform: translateX(-50%);
    z-index: 25;
    border: 2px solid #000;
}

.drag-handle:hover {
    opacity: 1;
    background: #45b3a8;
    transform: translateX(-50%) scale(1.1);
}

.drag-handle:active, .drag-handle.dragging {
    cursor: grabbing;
    background: #ff6b6b;
    transform: translateX(-50%) scale(1.2);
}

.drag-handle-top {
    top: -12px;
}

.drag-handle-bottom {
    bottom: -12px;
}


.scrubber-container {
    margin: 15px 0;
    padding: 0 10px;
    display: none;
}

.scrubber-track {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
}

.scrubber-thumb {
    position: absolute;
    top: -8px;
    width: 24px;
    height: 24px;
    background: #4ecdc4;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
    transform: translateX(-50%);
}

.scrubber-thumb:hover {
    background: #45b3a8;
    transform: translateX(-50%) scale(1.1);
}

.scrubber-thumb:active {
    cursor: grabbing;
    transform: translateX(-50%) scale(1.2);
}

.scrubber-progress {
    height: 100%;
    background: #4ecdc4;
    border-radius: 4px;
    transition: width 0.1s ease;
}

.playback-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
}

#playStopBtn {
    min-width: 100px;
}

#chopBtn {
    min-width: 120px;
}

#setBeat1Btn {
    min-width: 180px;
}

.btn-primary {
    background: transparent;
    border: 2px solid #ffffffd7;
    color: white;
}

.btn-primary:hover {
    background: #454545;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-danger:hover {
    background: #5a2c2c;
    transform: translateY(-2px);
}

.btn-success {
    background: transparent;
    border: 2px solid #fcfc7c;
    color: white;
}

.btn-success:hover {
    background: #35362c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #f8537fd7;
    color: white;
}

.btn-secondary:hover {
    background: #612d1e;
    transform: translateY(-2px);
}

.btn-info {
    background: transparent;
    border: 2px solid #4ecdc4;
    color: white;
    font-size: 14px;
    padding: 8px 16px;
}

.btn-info:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.help-section {
    text-align: center;
    margin-top: 15px;
}

.btn-about {
    background: transparent;
    border: 2px solid #44b5b7;
    color: #44b5b7;
    font-size: 14px;
    padding: 8px 16px;
    margin-top: 10px;
}

.btn-about:hover {
    background: rgba(68, 181, 183, 0.2);
    transform: translateY(-2px);
}

.btn-keyboard {
    background: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    font-size: 14px;
    padding: 8px 16px;
    margin-left: 10px;
}

.btn-keyboard:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

.btn-coffee {
    background: transparent;
    border: 2px solid #f8dd2e;
    color: white;
    font-size: 14px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-coffee:hover {
    background: #5b5707ac;
    transform: translateY(-2px);
}

.settings-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-section h4 {
    color: #44b5b7;
    margin-bottom: 10px;
    font-size: 16px;
}

.setting-item {
    margin-bottom: 10px;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dadada;
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    transform: scale(1.2);
}

.loop-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loop-switch-label {
    color: #dadada;
    font-weight: bold;
    font-size: 14px;
}

.loop-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.loop-switch-track {
    position: relative;
    width: 60px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #666;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.loop-switch-track.active {
    background: rgba(78, 205, 196, 0.3);
    border-color: #4ecdc4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.loop-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loop-switch-thumb.active {
    left: 30px;
    background: #4ecdc4;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4);
}

.switch-text {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.switch-text.off {
    color: #999;
}

.switch-text.on {
    color: #666;
}

.switch-text.off.active {
    color: #666;
}

.switch-text.on.active {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.loop-switch:hover .loop-switch-track {
    transform: scale(1.05);
}


.bpm-status {
    font-size: 9px;
    color: #999;
    text-align: center;
    margin-left: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.bpm-status.analyzing {
    color: #ff6b6b;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.bpm-status.detected {
    color: #51cf66;
}

.bpm-status.error {
    color: #ff6b6b;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.chop-list {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fcfc7c;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.chop-list h3 {
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.chop-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

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

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

.chop-item.playing {
    background: rgba(78, 205, 196, 0.3);
}

.chop-item span {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.chop-item button {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}

/* Skeleton placeholder styles */
.chop-item.skeleton {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    opacity: 0.7;
    cursor: default;
    animation: skeleton-pulse 2s ease-in-out infinite alternate;
}

.chop-item.skeleton:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
}

.skeleton-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: center;
    width: 100%;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.5;
        border-color: rgba(255, 255, 255, 0.1);
    }
    100% {
        opacity: 0.7;
        border-color: rgba(255, 255, 255, 0.3);
    }
}

.position-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 30px 0;
}

.nudge-controls {
    display: none; /* Hidden by default, shown when snap is active */
    align-items: center;
    gap: 10px;
}

.btn-nudge {
    width: 35px;
    height: 35px;
    border: 2px solid #4ecdc4;
    background: transparent;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-nudge:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: scale(1.05);
}

.btn-nudge:active {
    background: rgba(78, 205, 196, 0.4);
    transform: scale(0.95);
}

.btn-nudge:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nudge-label,
.wave-nav-label {
    color: #dadada;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.wave-nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-wave-nav {
    width: 35px;
    height: 35px;
    border: 2px solid #45b3a8;
    background: transparent;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-wave-nav:hover {
    background: rgba(69, 179, 168, 0.2);
    transform: scale(1.05);
}

.btn-wave-nav:active {
    background: rgba(69, 179, 168, 0.4);
    transform: scale(0.95);
}

.btn-wave-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.waveform-info .position-info {
    text-align: center;
    color: #dadada;
    font-size: 14px;
    font-weight: bold;
    transform: translateX(-80px);
}

.position-controls .position-info {
    text-align: center;
    color: #dadada;
    font-size: 18px;
}

.keyboard-hint {
    text-align: center;
    color: #ffffffd6;
    margin-top: 15px;
    font-style: arial;
}

.export-section {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.export-section button {
    margin: 0 !important;
    min-width: 150px;
}

.btn-exporting {
    position: relative;
    pointer-events: none;
}

.btn-exporting::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #000000, #0000009d);
    border: 2px solid #dadada;
    border-radius: 15px;
    padding: 25px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    color: rgb(250, 247, 231);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    font-size: 24px;
    color: #44b5b7;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header span {
    flex: 1;
}

.modal-close-x {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.modal-close-x:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.modal-close-x i[data-lucide] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.modal-body {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.features-section {
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.features-section > p {
    grid-column: 1 / -1;
    margin-bottom: 15px;
}

.features-section ul {
    margin: 0;
    padding-left: 18px;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.features-section li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.social-section {
    text-align: center;
    margin: 20px 0 15px 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #E4405F;
    background: transparent;
    color: #E4405F;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(228, 64, 95, 0.2);
    transform: translateY(-2px);
}

.social-btn i[data-lucide] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.hayzer-btn {
    border: none;
    background: transparent;
    color: #ffff00;
    width: auto;
    height: auto;
}

.hayzer-btn:hover {
    background: transparent;
    transform: translateY(-2px);
}

.hayzer-btn .lightning svg {
    width: 40px;
    height: 40px;
    color: #ffff00;
}

.modal-body strong {
    color: #fcfc7c;
}

.modal-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
    color: #aaa;
}

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

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 48px;
    box-sizing: border-box;
}

.modal-btn-cancel {
    background: #6c757d;
    color: white;
}

.modal-btn-cancel:hover {
    background: #5a6268;
}

.modal-btn-continue {
    background: transparent;
    border: 2px solid #ff6b6b;
    color: white;
}

.modal-btn-continue:hover {
    background: #ff5252;
}

.bar-buttons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.btn-bar {
    padding: 6px 12px;
    border: 2px solid #4ecdc4;
    background: transparent;
    color: white;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-bar:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: translateY(-1px);
}

.btn-bar.active {
    background: #4ecdc4;
    color: #000;
}

.btn-snap {
    padding: 6px 12px;
    border: 2px solid #fcfc7c;
    background: transparent;
    color: white;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-snap:hover {
    background: rgba(252, 252, 124, 0.2);
    transform: translateY(-1px);
}

.btn-snap.active {
    background: #fcfc7c;
    color: #000;
}

.resize-handle.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Tablet Responsive Styles */
@media (max-width: 1024px) {
    .chop-items {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hide keyboard button on tablet and mobile */
    .btn-keyboard {
        display: none;
    }

    /* Header adjustments for tablet */
    .header-center h1 {
        font-size: 2.2rem;
    }

    .header-center h5 {
        font-size: 1.1rem;
    }

    .parent-company {
        font-size: 0.9rem;
    }

    .header-logo {
        max-width: 70px;
    }
}

@media (max-width: 900px) {
    .chop-items {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Further header adjustments */
    .app-header {
        padding: 15px 0;
    }

    .header-center h1 {
        font-size: 2rem;
        margin: 8px 0;
    }

    .header-center h5 {
        font-size: 1rem;
    }

    .parent-company {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .header-left-buttons {
        top: 10px;
        left: 10px;
        gap: 8px;
    }

    .header-left-buttons .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    /* Header responsive fixes */
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 15px 0;
    }

    .header-left-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        order: 3;
    }

    .header-center {
        order: 1;
        margin: 0;
    }

    .header-center .parent-company {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .header-center h1 {
        font-size: 2rem;
        margin: 5px 0;
        line-height: 1.2;
    }

    .header-center h5 {
        font-size: 1rem;
        margin: 0;
    }

    .header-right {
        order: 2;
        align-items: center;
    }

    .header-logo {
        max-width: 60px;
    }

    .controls-header {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .app-title {
        order: -1; /* Put title first on mobile */
    }

    .controls-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .endpoint-control {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .bar-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .playback-controls {
        gap: 10px;
        padding: 0 10px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 14px;
        min-width: 100px;
        flex: 1;
        max-width: 150px;
    }

    .loop-switch-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }

    .canvas-wrapper {
        height: 150px;
    }

    .chop-items {
        grid-template-columns: 1fr 1fr;
    }

    .position-controls {
        flex-direction: column;
        gap: 15px;
    }

    .nudge-controls {
        order: -1;
    }

}

/* Notification styles */
.error-notification,
.success-notification,
.loading-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.error-notification {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    border: 2px solid #ff6b6b;
    color: white;
    display: flex;
    align-items: flex-start;
    padding: 16px;
}

.success-notification {
    background: linear-gradient(135deg, #2ed573, #20bf6b);
    border: 2px solid #4ecdc4;
    color: white;
    padding: 12px 16px;
}

.loading-notification {
    background: linear-gradient(135deg, #4ecdc4, #45b3a8);
    border: 2px solid #4ecdc4;
    color: white;
    padding: 12px 16px;
}

.error-content,
.success-content {
    flex: 1;
}

.error-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.error-content p,
.success-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.error-details {
    font-size: 13px !important;
    opacity: 0.9;
    margin-top: 8px !important;
}

.error-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.error-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .error-notification,
    .success-notification,
    .loading-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    /* Extra small phone header fixes */
    .header-center h1 {
        font-size: 1.8rem;
        margin: 3px 0;
    }

    .header-center h5 {
        font-size: 0.9rem;
        margin: 0;
    }

    .header-center .parent-company {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }

    .lightning svg {
        width: 14px;
        height: 14px;
    }

    .header-logo {
        max-width: 50px;
    }

    .header-left-buttons .btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .playback-controls {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: none;
        padding: 16px 20px;
    }

    .loop-switch-container {
        order: -1;
        margin-bottom: 15px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .controls-header {
        justify-content: center;
    }

    .chop-items {
        grid-template-columns: 1fr;
        gap: 8px;
    }


    .waveform-container {
        min-height: 250px;
        padding: 15px 15px 30px 15px;
        margin-bottom: 40px;
    }
}

/* Upgrade Modal Styles */
.upgrade-options {
    margin: 20px 0;
}

.upgrade-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.upgrade-option h4 {
    color: #fcfc7c;
    margin-bottom: 10px;
    font-size: 18px;
}

.freeloader-option {
    background: rgba(255, 100, 100, 0.08) !important;
    border-color: rgba(255, 100, 100, 0.15) !important;
}

.freeloader-option h4 {
    color: #ff9999 !important;
}

.upgrade-divider {
    text-align: center;
    color: #999;
    font-weight: bold;
    margin: 15px 0;
    position: relative;
}

.upgrade-divider::before,
.upgrade-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.upgrade-divider::before {
    left: 0;
}

.upgrade-divider::after {
    right: 0;
}

.promo-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

#promoCodeInput,
#aboutPromoInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #4ecdc4;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    height: 48px;
    box-sizing: border-box;
}

#promoCodeInput:focus,
#aboutPromoInput:focus {
    outline: none;
    border-color: #fcfc7c;
    background: rgba(255, 255, 255, 1);
}

.promo-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 4px;
}

.export-count-display {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

.modal-btn-primary {
    background: transparent;
    border: 2px solid #4ecdc4;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.modal-btn-primary:hover {
    background: rgba(78, 205, 196, 0.2);
}

/* Hide upgrade modal in desktop version */
.desktop-version #upgradeModal {
    display: none !important;
}

/* About Modal Promo Section */
.promo-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 8px;
}

.promo-unlock h4 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 16px;
}

.promo-unlock p {
    margin-bottom: 15px;
    color: #dadada;
}

/* Hide promo section in desktop version */
.desktop-version #aboutPromoSection {
    display: none !important;
}

/* Keyboard Shortcuts Modal Styles */
.shortcuts-grid {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.shortcut-section {
    flex: 1;
}

.shortcut-section h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4ecdc4;
    font-size: 16px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-item kbd {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ecdc4;
    border-radius: 4px;
    color: #4ecdc4;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    display: inline-block;
    margin-right: 5px;
}

.shortcut-item span {
    flex: 1;
    text-align: left;
    color: #fff;
    font-size: 14px;
}

/* Modal responsiveness */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        padding: 20px;
        margin: 10px;
    }

    .features-section ul {
        grid-template-columns: 1fr;
    }

    .header-left-buttons {
        top: 10px;
        left: 10px;
        gap: 4px;
    }

    .header-left-buttons .btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Responsive keyboard modal */
@media (max-width: 768px) {
    .shortcuts-grid {
        flex-direction: column;
        gap: 20px;
    }

    .shortcut-item {
        padding: 10px 0;
    }

    .shortcut-item kbd {
        min-width: 35px;
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* Lucide Icon Styling */
i[data-lucide] {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    vertical-align: middle;
    margin-right: 6px;
}

/* Specific icon sizes for different contexts */
.modal-header i[data-lucide] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.shortcut-section h4 i[data-lucide] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.shortcut-item i[data-lucide] {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.btn i[data-lucide] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.btn-nudge i[data-lucide],
.btn-wave-nav i[data-lucide] {
    width: 14px;
    height: 14px;
    margin: 0;
}

/* Remove margin for icons that should be standalone */
.btn-keyboard i[data-lucide],
.error-close i[data-lucide] {
    margin: 0;
}

/* Key combination styling */
.key-combo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.key-combo kbd {
    display: flex;
    align-items: center;
    gap: 4px;
}