/* Dog Profile V2 Styles - Mobile First Design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #EA4E6E;
    --primary-hover: #d93d5d;
    --orange-accent: #EA4E6E;
    --orange-accent-alt: #d93d5d;
    --bg-color: #FFF9F0;
    --bg-color-alt: #FFF7EB;
    --text-color: #333;
    --text-muted: #666;
    --card-bg: #fff;
    --border-color: #e5e5e5;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(234, 78, 110, 0.15);
    --badge-bg: #FADADD;
}

* {
    box-sizing: border-box;
}

.dog-profile-v2 {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-color);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    padding-bottom: 80px;
}

/* Desktop styles */
@media (min-width: 768px) {
    .dog-profile-v2 {
        max-width: 100%;
        padding: 20px;
    }

    .dog-profile-v2-header {
        max-width: 1200px;
        margin: 0 auto;
        border-radius: var(--border-radius-lg);
    }

    .dog-profile-v2-details,
    .dog-profile-v2-products {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .dog-profile-v2-details-scroll,
    .dog-profile-v2-products-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
        overflow-x: visible;
    }

    .dog-profile-v2-detail-card,
    .dog-profile-v2-product-card {
        min-width: auto;
    }
}

/* Top Section - Profile Header */
.dog-profile-v2-header {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.dog-profile-v2-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.dog-profile-v2-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid rgba(255, 107, 53, 0.1);
    overflow: hidden;
    background: #e6e6e6;
    object-fit: cover;
}

.dog-profile-v2-image-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--card-bg);
    padding: 6px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dog-profile-v2-name {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dog-profile-v2-name-edit {
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.dog-profile-v2-name-edit:hover {
    color: var(--primary-color);
}

.dog-profile-v2-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.dog-profile-v2-badge {
    background: rgba(234, 78, 110, 0.1);
    color: var(--orange-accent);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

.dog-profile-v2-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.dog-profile-v2-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.dog-profile-v2-btn-secondary {
    background: #f0f0f0;
    color: var(--text-color);
}

.dog-profile-v2-btn-secondary:hover {
    background: #e0e0e0;
}

.dog-profile-v2-btn-primary {
    background: var(--orange-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(234, 78, 110, 0.3);
}

.dog-profile-v2-btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(234, 78, 110, 0.4);
}

/* Details Section - Horizontal Scroll */
.dog-profile-v2-details {
    margin-top: 32px;
    padding: 0 24px;
}

.dog-profile-v2-details-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dog-profile-v2-details-hint {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.dog-profile-v2-details-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dog-profile-v2-details-scroll::-webkit-scrollbar {
    display: none;
}

.dog-profile-v2-detail-card {
    min-width: 260px;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.dog-profile-v2-detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.dog-profile-v2-detail-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dog-profile-v2-detail-card-icon {
    padding: 8px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dog-profile-v2-detail-card-icon svg {
    width: 20px;
    height: 20px;
}

.dog-profile-v2-detail-card-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-color);
}

.dog-profile-v2-detail-card-edit {
    color: var(--orange-accent);
    padding: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.dog-profile-v2-detail-card-edit:hover {
    color: var(--primary-color);
}

.dog-profile-v2-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 12px;
}

.dog-profile-v2-detail-label {
    color: #999;
}

.dog-profile-v2-detail-value {
    font-weight: 500;
    color: var(--text-color);
}

/* Products Section */
.dog-profile-v2-products {
    margin-top: 32px;
    padding: 0 24px;
    padding-bottom: 48px;
}

.dog-profile-v2-products-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.dog-profile-v2-products-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dog-profile-v2-products-scroll::-webkit-scrollbar {
    display: none;
}

.dog-profile-v2-product-card {
    min-width: 280px;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.dog-profile-v2-product-card.featured {
    border: 2px solid rgba(234, 78, 110, 0.2);
}

.dog-profile-v2-product-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--orange-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 0 16px;
    text-transform: uppercase;
}

.dog-profile-v2-product-badge.blue {
    background: #3b82f6;
}

.dog-profile-v2-product-image {
    width: 100%;
    height: 128px;
    background: rgba(234, 78, 110, 0.1);
    border-radius: var(--border-radius-lg);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dog-profile-v2-product-image.blue {
    background: rgba(59, 130, 246, 0.1);
}

.dog-profile-v2-product-image.green {
    background: rgba(34, 197, 94, 0.1);
}

.dog-profile-v2-product-image.purple {
    background: rgba(168, 85, 247, 0.1);
}

.dog-profile-v2-product-image.chews {
    background: rgba(234, 78, 110, 0.1);
}

.dog-profile-v2-product-image.education {
    background: rgba(234, 78, 110, 0.1);
}

.dog-profile-v2-product-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.dog-profile-v2-product-subtitle {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    font-style: italic;
}

.dog-profile-v2-product-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange-accent);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    cursor: pointer;
    text-decoration: none;
}

.dog-profile-v2-product-link:hover {
    text-decoration: underline;
}

.dog-profile-v2-product-link.blue {
    color: #3b82f6;
}

.dog-profile-v2-product-link.chews {
    color: var(--primary-color);
}

.dog-profile-v2-product-link.education {
    color: var(--primary-color);
}

.dog-profile-v2-product-btn {
    width: 100%;
    background: var(--orange-accent);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(234, 78, 110, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.dog-profile-v2-product-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(234, 78, 110, 0.3);
}

.dog-profile-v2-product-btn.blue {
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.dog-profile-v2-product-btn.blue:hover {
    background: #2563eb;
}

.dog-profile-v2-product-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    box-shadow: none;
}

.dog-profile-v2-product-btn.secondary:hover {
    background: #f5f5f5;
}

.dog-profile-v2-product-btn.chews {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(234, 78, 110, 0.2);
}

.dog-profile-v2-product-btn.chews:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(234, 78, 110, 0.3);
}

.dog-profile-v2-product-btn.education {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(234, 78, 110, 0.2);
}

.dog-profile-v2-product-btn.education:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(234, 78, 110, 0.3);
}

/* Modal Styles */
.dog-profile-v2-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dog-profile-v2-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.dog-profile-v2-modal {
    background: var(--bg-color);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.dog-profile-v2-modal-overlay.active .dog-profile-v2-modal {
    transform: translateY(0);
}

.dog-profile-v2-modal-header {
    padding: 24px 24px 8px;
    background: var(--card-bg);
    border-radius: 40px 40px 0 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.dog-profile-v2-modal-handle {
    width: 48px;
    height: 6px;
    background: #ccc;
    border-radius: 999px;
    margin: 0 auto 24px;
    cursor: pointer;
}

.dog-profile-v2-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 50%;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dog-profile-v2-modal-close:hover {
    background: #e0e0e0;
    color: var(--text-color);
}

.dog-profile-v2-modal-content {
    overflow-y: auto;
    padding: 24px;
    padding-bottom: 96px;
    flex: 1;
    scroll-behavior: smooth;
}

.dog-profile-v2-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dog-profile-v2-modal-subtitle {
    color: #999;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 24px;
}

.dog-profile-v2-modal-section {
    margin-bottom: 32px;
}

.dog-profile-v2-modal-section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.dog-profile-v2-modal-section-title svg {
    color: var(--orange-accent);
    width: 18px;
    height: 18px;
}

.dog-profile-v2-modal-ingredients {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(234, 78, 110, 0.1);
    box-shadow: var(--shadow-sm);
    text-align: justify;
}

.dog-profile-v2-modal-legend {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.dog-profile-v2-modal-legend-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.dog-profile-v2-modal-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.dog-profile-v2-modal-legend-content {
    flex: 1;
}

.dog-profile-v2-modal-legend-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.dog-profile-v2-modal-legend-desc {
    font-size: 12px;
    color: #999;
}

.dog-profile-v2-modal-chart {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.dog-profile-v2-modal-chart-item {
    width: 100%;
}

.dog-profile-v2-modal-chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.dog-profile-v2-modal-chart-bar {
    height: 12px;
    width: 100%;
    background: #f0f0f0;
    border-radius: 999px;
    overflow: hidden;
}

.dog-profile-v2-modal-chart-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(to right, var(--start-color), var(--end-color));
}

.dog-profile-v2-modal-product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dog-profile-v2-modal-product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.dog-profile-v2-modal-product-image {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.dog-profile-v2-modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-profile-v2-modal-product-content {
    flex: 1;
}

.dog-profile-v2-modal-product-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.dog-profile-v2-modal-product-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
}

.dog-profile-v2-modal-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.dog-profile-v2-modal-product-price {
    color: var(--orange-accent);
}

.dog-profile-v2-modal-product-add {
    background: var(--orange-accent);
    color: white;
    padding: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    min-width: 32px;
    min-height: 32px;
}

.dog-profile-v2-modal-product-add:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.dog-profile-v2-modal-footer {
    padding: 24px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-radius: 24px 24px 0 0;
    position: sticky;
    bottom: 0;
}

.dog-profile-v2-modal-footer-btn {
    width: 100%;
    background: var(--orange-accent);
    color: white;
    padding: 16px;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(234, 78, 110, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.dog-profile-v2-modal-footer-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 20px rgba(234, 78, 110, 0.4);
}

.dog-profile-v2-modal-footer-btn.blue {
    background: #3b82f6;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.dog-profile-v2-modal-footer-btn.blue:hover {
    background: #2563eb;
}

.dog-profile-v2-modal-footer-btn.secondary {
    background: #f0f0f0;
    color: var(--text-color);
    box-shadow: none;
}

.dog-profile-v2-modal-footer-btn.secondary:hover {
    background: #e0e0e0;
}

/* Subscription Confirmation Modal */
.dog-profile-v2-subscription-modal {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    margin: 24px;
    box-shadow: var(--shadow-lg);
}

.dog-profile-v2-subscription-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.dog-profile-v2-subscription-modal-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.dog-profile-v2-subscription-comparison {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.dog-profile-v2-subscription-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.dog-profile-v2-subscription-label {
    font-weight: 600;
    color: var(--text-muted);
}

.dog-profile-v2-subscription-value {
    font-weight: 700;
    color: var(--text-color);
}

.dog-profile-v2-subscription-actions {
    display: flex;
    gap: 12px;
}

.dog-profile-v2-subscription-actions .dog-profile-v2-btn {
    flex: 1;
}

/* Responsive adjustments - already handled above */

/* Image and Name Edit Popups */
.dog-image-popup-v2,
.dog-name-popup-v2 {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-content-v2 {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-content-v2 h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.close-popup-v2 {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    background: #f0f0f0;
}

.close-popup-v2:hover {
    background: #e0e0e0;
    color: var(--text-color);
}

.popup-image-area-v2 {
    margin-bottom: 24px;
    text-align: center;
}

.popup-image-area-v2 img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.no-image-placeholder-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #f5f5f5;
    border-radius: var(--border-radius);
    color: #999;
}

.no-image-placeholder-v2 svg {
    margin-bottom: 12px;
}

.no-image-placeholder-v2 p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

.popup-actions-v2 {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.upload-button-v2,
.remove-button-v2 {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-height: 44px;
}

.upload-button-v2 {
    background: var(--orange-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(234, 78, 110, 0.3);
}

.upload-button-v2:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(234, 78, 110, 0.4);
}

.remove-button-v2 {
    background: #f0f0f0;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.remove-button-v2:hover {
    background: #e0e0e0;
}

.popup-submit-v2 {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.save-button-v2,
.cancel-button-v2 {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-height: 44px;
}

.save-button-v2 {
    background: var(--orange-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(234, 78, 110, 0.3);
    display: inline-block !important;
    /* Force display when shown */
}

.save-button-v2:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(234, 78, 110, 0.4);
}

.save-button-v2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ensure save button is visible when shown */
#popup-save-button-v2[style*="display: inline-block"],
#popup-save-button-v2[style*="display:block"] {
    display: inline-block !important;
}

.cancel-button-v2 {
    background: #f0f0f0;
    color: var(--text-color);
}

.cancel-button-v2:hover {
    background: #e0e0e0;
}

.form-row-v2 {
    margin-bottom: 20px;
}

.form-row-v2 label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-row-v2 input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-row-v2 input[type="text"]:focus {
    outline: none;
    border-color: var(--orange-accent);
    box-shadow: 0 0 0 3px rgba(234, 78, 110, 0.1);
}

/* Utility classes */
.text-orange {
    color: var(--orange-accent);
}

.text-blue {
    color: #3b82f6;
}

.text-green {
    color: #22c55e;
}

.bg-orange {
    background: var(--orange-accent);
}

.bg-blue {
    background: #3b82f6;
}

.bg-green {
    background: #22c55e;
}


/* Popup Styles */
.dog-image-popup-v2,
.dog-name-popup-v2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.popup-content-v2 {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    max-width: 90%;
    width: 450px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.popup-content-cropper {
    width: 500px;
}

.close-popup-v2 {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    z-index: 10;
}

.close-popup-v2:hover {
    color: #333;
}

.popup-image-area-v2 {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
}

.popup-image-area-v2 img {
    max-width: 100%;
    max-height: 400px;
    display: block;
}

.no-image-placeholder-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #999;
    padding: 40px;
}

.popup-actions-v2 {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.upload-button-v2,
.remove-button-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
}

.upload-button-v2 {
    background: #f0f0f0;
    color: #333;
}

.upload-button-v2:hover {
    background: #e0e0e0;
}

.remove-button-v2 {
    background: #fee2e2;
    color: #ef4444;
    border: none;
}

.remove-button-v2:hover {
    background: #fecaca;
}

.popup-submit-v2 {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.save-button-v2 {
    background: var(--orange-accent);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.save-button-v2:hover {
    background: var(--primary-hover);
}

.save-button-v2:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cancel-button-v2 {
    background: transparent;
    color: #666;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 600;
    cursor: pointer;
}

.cancel-button-v2:hover {
    background: #f5f5f5;
}

.cropper-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cropper-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropper-btn:hover {
    background: #f9f9f9;
    color: var(--orange-accent);
    border-color: var(--orange-accent);
}