/* Tool-specific styles only - base styles are in tool-layout.css */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-title {
    font-size: 18px;
    font-weight: 500;
    color: #d1d5db;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.required {
    color: #ef4444;
}

.text-input {
    background-color: #0a0a0a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-input::placeholder {
    color: #6b7280;
}

.textarea-input {
    resize: vertical;
    min-height: 72px;
}

.char-counter {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

.char-counter.warning {
    color: #fbbf24;
}

.char-counter.danger {
    color: #ef4444;
}

.input-error {
    font-size: 13px;
    color: #ef4444;
    min-height: 0;
}

.input-error:empty {
    display: none;
}

.photo-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.photo-upload-zone {
    width: 96px;
    height: 96px;
    border: 2px dashed #374151;
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
    outline: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-upload-zone:hover,
.photo-upload-zone:focus-visible {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.08);
}

.photo-upload-zone.drag-active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.08);
}

.photo-upload-zone.has-photo {
    border-style: solid;
    border-color: #374151;
}

.photo-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

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

.photo-placeholder {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    padding: 8px;
    line-height: 1.3;
}

.button-text {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 150ms ease;
}

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

.link-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.link-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link-row-number {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-row-actions {
    display: flex;
    gap: 4px;
}

.link-action-btn {
    background: none;
    border: 1px solid #374151;
    color: #9ca3af;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
    font-family: inherit;
}

.link-action-btn:hover {
    border-color: #6b7280;
    color: #e5e7eb;
}

.link-action-btn.remove-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.link-action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.link-inputs {
    display: flex;
    gap: 8px;
}

.link-inputs .text-input {
    flex: 1;
}

.link-count {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.select-input {
    background-color: #0a0a0a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.select-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.select-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.select-input option {
    background-color: #1a1a1a;
}

.theme-selector {
    display: flex;
    gap: 8px;
}

.theme-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 150ms ease;
    font-family: inherit;
}

.theme-btn:hover {
    border-color: #6b7280;
}

.theme-btn.active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.08);
}

.theme-btn.dimmed {
    opacity: 0.5;
}

.theme-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #374151;
}

.theme-swatch-dark {
    background-color: #0a0a0a;
}

.theme-swatch-light {
}

.theme-swatch-pastel {
}

.theme-label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.theme-btn.active .theme-label {
    color: #e5e7eb;
}

.pro-section {
    opacity: 0.6;
    transition: opacity 150ms ease;
}

.pro-section.unlocked {
    opacity: 1;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.color-picker-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.color-picker-item > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-input {
    width: 36px;
    height: 36px;
    border: 1px solid #374151;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 2px;
    -webkit-appearance: none;
    appearance: none;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-input::-moz-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.color-value {
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #6b7280;
    min-width: 64px;
}

.social-add-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.social-link-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #9ca3af;
}

.social-link-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.social-link-info {
    flex: 1;
    min-width: 0;
}

.social-link-platform {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}

.social-link-url {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-link-remove {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 150ms ease;
    font-family: inherit;
}

.social-link-remove:hover {
    color: #ef4444;
}

.analytics-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analytics-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
}

label.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    background-color: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 4px;
    position: relative;
    transition: all 150ms ease;
    flex-shrink: 0;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

label.checkbox-label input[type="checkbox"]:disabled + .checkbox-custom {
    opacity: 0.5;
    cursor: not-allowed;
}

.output-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.output-header h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: #d1d5db;
}

.preview-container {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 375px;
    max-width: 100%;
    border: 2px solid #374151;
    border-radius: 24px;
    overflow: hidden;
    background-color: #0a0a0a;
}

.phone-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-feedback {
    font-size: 14px;
    font-weight: 500;
    color: #10b981;
    text-align: center;
    padding: 8px;
}

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
    width: 100%;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.pro-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.pro-cta-text {
    font-size: 14px;
    color: #d1d5db;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay.modal-hidden {
    display: none;
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-content {
    padding: 24px;
}

.pro-features-list {
    margin-bottom: 24px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: #e5e7eb;
}

.modal-cta {
    width: 100%;
    display: block;
}

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #374151;
    padding: 32px 24px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 768px) {
        padding: 32px 16px;
    }

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 32px;
    }

    .input-group {
        padding: 16px;
    }

    .output-section {
        padding: 16px;
    }

    .link-inputs {
        flex-direction: column;
    }

    .theme-selector {
        gap: 6px;
    }

    .theme-btn {
        padding: 10px 8px;
    }

    .theme-label {
        font-size: 11px;
    }

    .phone-frame {
        border-radius: 16px;
    }

    .phone-frame iframe {
        height: 500px;
    }

    .pro-cta-content {
        flex-direction: column;
        gap: 10px;
    }

        padding: 0 16px;
    }

    .color-picker-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .theme-swatch {
        width: 24px;
        height: 24px;
    }

    .phone-frame iframe {
        height: 450px;
    }
}