/* ClipperAgent Pro - Professional Commercial CSS */

:root {
    /* Premium Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    
    /* Neutrals */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Hero Header */
.hero-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
    line-height: 1;
}

.logo-text h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Account Section */
.account-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.usage-display {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.usage-display .loading {
    opacity: 0.9;
    color: white;
}

.account-dropdown {
    position: relative;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.account-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.account-icon {
    font-size: 1.3rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.account-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.account-dropdown.active .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px 12px 0 0;
}

.user-info {
    color: var(--text-primary);
}

.user-email {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-plan {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.item-icon {
    font-size: 1.1rem;
}

.logout-btn {
    color: var(--danger);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.header-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Main Content */
.main-wrapper {
    padding: 3rem 0;
}

/* Queue Status Banner */
.queue-status-banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.queue-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.queue-icon {
    font-size: 1.5rem;
}

.queue-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.queue-text strong {
    font-weight: 600;
}

.queue-details-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.queue-details-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Value Proposition */
.value-section {
    text-align: center;
    margin-bottom: 3rem;
}

.value-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.value-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

/* Upload Tabs */
.upload-section {
    margin-bottom: 4rem;
}

.upload-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.upload-tab {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tab-icon {
    font-size: 1.5rem;
}

.upload-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-tab.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Upload Card */
.upload-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed var(--border);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.drop-zone h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.drop-zone p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.file-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.file-info.hidden {
    display: none;
}

/* Controls */
.controls-simple {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-group label {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.control-group small {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: -0.25rem;
    display: block;
}

/* Number Input Fancy */
.number-input-fancy {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 1rem;
    width: fit-content;
}

.num-btn {
    width: 3rem;
    height: 3rem;
    border: none;
    background: white;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.num-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.number-input-fancy input {
    width: 5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-primary);
}

/* Range Slider */
.range-slider {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.range-slider input[type="range"] {
    width: 100%;
    height: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    outline: none;
    -webkit-appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Format Pills */
.format-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.format-pill {
    flex: 1;
    min-width: 150px;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.format-pill input {
    display: none;
}

.format-pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.format-pill.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.pill-icon {
    font-size: 2.5rem;
}

.pill-label {
    font-weight: 600;
    line-height: 1.3;
}

.format-pill.active .pill-label small {
    color: rgba(255, 255, 255, 0.9);
}

/* Caption Options */
.caption-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.caption-style {
    flex: 1;
    min-width: 180px;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.caption-style input {
    display: none;
}

.caption-style:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.caption-style.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-md);
}

.style-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-icon {
    font-size: 2rem;
}

.style-info strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.style-info small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Advanced Options */
.advanced-toggle {
    margin: 1rem 0;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.toggle-btn:hover {
    color: var(--primary-dark);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.advanced-options {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    margin-top: 1rem;
}

.advanced-options.hidden {
    display: none;
}

.text-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.select-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.slider {
    width: 100%;
    height: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.5rem;
}

.checkbox-fancy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-fancy input {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    margin-top: 1rem;
}

.btn-icon {
    font-size: 1.5rem;
}

/* URL Input Group */
.url-input-group {
    display: flex;
    gap: 1rem;
}

.url-input-group .text-input {
    flex: 1;
}

/* Processing Section */
.processing-section {
    margin: 3rem 0;
}

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

.processing-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.processing-header h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.processing-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.progress-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
}

.progress-ring {
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.progress-info {
    text-align: left;
}

.progress-step {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.progress-details {
    color: var(--text-secondary);
    font-size: 1rem;
}

.processing-tips {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: left;
    margin-top: 2rem;
}

.processing-tips h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.processing-tips ul {
    list-style: none;
    padding: 0;
}

.processing-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.processing-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Segments Preview */
.segments-preview {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
}

.segments-preview h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

#segments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.segment-item {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.segment-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.segment-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.875rem;
}

.segment-score {
    background: var(--gradient-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.segment-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.segment-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.segment-reason {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}


/* Results Section */
.results-section {
    margin: 3rem 0;
}

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

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Features Section */
.features-section {
    margin: 5rem 0;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand strong {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* Settings/Account Pages */
.settings-page,
.billing-page,
.usage-page {
    max-width: 1000px;
    margin: 0 auto;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.settings-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.settings-card.danger {
    border-color: var(--danger);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input:read-only {
    background: var(--bg-secondary);
    cursor: not-allowed;
}

.plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Responsive / Mobile ===== */

/* Small devices (phones, 480px and down) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-header {
        padding: 1rem 0;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .tagline {
        display: none;
    }
    
    .account-section {
        gap: 0.75rem;
    }
    
    .usage-display {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .account-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Form inputs - prevent iOS zoom */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
        padding: 0.875rem;
    }
    
    /* Upload sections */
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .upload-zone h3 {
        font-size: 1rem;
    }
    
    /* Progress section */
    .progress-visual {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .progress-stage {
        width: 100%;
        padding: 0.5rem;
    }
    
    /* Clip results */
    .clip-card {
        padding: 1rem;
    }
    
    .clip-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-section {
        justify-content: center;
    }
    
    .header-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .account-section {
        width: 100%;
        justify-content: center;
    }
    
    .value-section h2 {
        font-size: 2rem;
    }
    
    .upload-tabs {
        flex-direction: column;
    }
    
    .upload-tab {
        width: 100%;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .results-actions {
        width: 100%;
        flex-direction: column;
    }
    
    /* Settings grid */
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    /* Queue manager */
    .queue-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Touch targets */
    .btn,
    button,
    a.btn {
        min-height: 44px;
    }
    
    /* Table scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
}

/* Hide mobile-only elements on desktop */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* iOS safe area support */
@supports (padding: max(0px)) {
    .hero-header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Prevent iOS zoom on focus */
@supports (-webkit-touch-callout: none) {
    input, select, textarea {
        font-size: 16px;
    }
}

/* Improve touch feedback */
* {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
}

