/* =================================================================
   Profile Page Styles - Canadian AI Classifieds
   =============================================================== */

.profile-page {
    min-height: 100vh;
    background: #ffffff;
    padding: 140px 0 4rem 0;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Profile Header Card */
.profile-header-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.15);
}

.profile-header-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upload-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2F5D3A, #4a90e2);
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-avatar-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.upload-avatar-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(47, 93, 58, 0.3);
}

.profile-info {
    flex: 1;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

.verification-badges {
    display: flex;
    gap: 0.5rem;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #E8F5E9;
    color: #2F5D3A;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.verification-badge svg {
    width: 16px;
    height: 16px;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    color: #4a90e2;
}

.profile-actions {
    margin-left: auto;
    display: flex;
    gap: 0.75rem;
}

/* Statistics Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(74, 144, 226, 0.15);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2F5D3A;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #666;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Profile Section */
.profile-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(74, 144, 226, 0.15);
}

@media (max-width: 768px) {
    .profile-section {
        padding: 1.25rem !important;
        /* Reduced padding for mobile */
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 0.5rem 0;
    /* Tightened margin */
}

@media (max-width: 768px) {
    .profile-section {
        padding: 1rem !important;
        /* Even more compact padding */
        text-align: center;
        /* Center-align for luxury look on mobile */
        overflow-x: hidden;
        /* Prevent horizontal overflow */
    }

    .section-title {
        margin-bottom: 0.5rem;
    }

    .profile-bio {
        margin-bottom: 0.5rem;
    }
}

.profile-bio {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* Edit Form */
.edit-form {
    animation: fadeIn 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2C2C2C;
    font-size: 0.95rem;
}

.required-star {
    color: #e53e3e;
    margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5DDD5;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.char-count {
    display: block;
    text-align: right;
    color: #999;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(229, 221, 213, 0.5);
    white-space: nowrap;
    /* Prevent tabs from wrapping */
    overflow-x: auto;
    /* Enable horizontal scroll */
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -2px;
    flex-shrink: 0;
    /* Prevent tabs from squishing on mobile */
}

.tab-btn:hover {
    color: #4a90e2;
}

.tab-btn.active {
    color: #2F5D3A;
    border-bottom-color: #2F5D3A;
}

.tab-count {
    font-weight: 400;
    color: #999;
    font-size: 0.875rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Premium Glassmorphic Listing Card */
.listing-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 144, 226, 0.3) !important;
}

.listing-card-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.listing-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.listing-card:hover .listing-card-image {
    transform: scale(1.05);
}

/* Glowing Status Badges */
.status-badge-premium {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.status-active { 
    background: rgba(16, 185, 129, 0.9); 
    color: white; 
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.status-sold { 
    background: rgba(245, 158, 11, 0.9); 
    color: white; 
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}
.status-draft { 
    background: rgba(107, 114, 128, 0.9); 
    color: white; 
}
.status-expired { 
    background: rgba(239, 68, 68, 0.9); 
    color: white; 
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Listing Details */
.listing-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card-category {
    font-size: 0.7rem;
    color: var(--blue-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.listing-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.listing-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

/* Performance Stats */
.performance-stats {
    display: flex;
    gap: 1.25rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-group svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Action Overlay - Hidden till hover */
.listing-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 70%, transparent);
    padding: 1.5rem;
    display: flex;
    gap: 0.75rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.listing-card:hover .listing-actions-overlay {
    transform: translateY(0);
}

.performance-score-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-state p {
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

/* Unified Action Buttons for Listings */
.action-btn {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.action-btn-primary {
    background: linear-gradient(135deg, #2F5D3A, #4a90e2);
    color: white;
    box-shadow: 0 4px 12px rgba(47, 93, 58, 0.15);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 93, 58, 0.25);
}

.action-btn-secondary {
    background: white;
    color: #4a90e2;
    border: 1px solid #e1e7ef;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.action-btn-secondary:hover {
    border-color: #4a90e2;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.action-btn-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.action-btn-danger:hover {
    background: #c53030;
    color: white;
    border-color: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.2);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, #2F5D3A, #4a90e2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 93, 58, 0.3);
}

.btn-secondary {
    background: white;
    color: #2C2C2C;
    border: 2px solid #E5DDD5;
}

.btn-secondary:hover {
    border-color: #4a90e2;
    color: #4a90e2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profiles Tabs - Scrollbar Removal */
.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tabs {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Responsive */
@media (max-width: 768px) {
    .profile-page {
        padding: 125px 0 2rem 0; /* Clears sticky header and adds breathing room */
        text-align: center; /* Better luxury feel on small mobile */
    }

    .profile-container {
        padding: 0 1rem;
    }

    .profile-header-card {
        padding: 1.5rem;
    }

    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-actions {
        margin-left: 0;
        width: 100%;
    }

    .profile-actions button {
        width: 100%;
    }

    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-name {
        font-size: 1.5rem;
    }

    /* Fix scattered address on mobile */
    .profile-meta {
        justify-content: flex-start;
        text-align: left;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        /* Reduced from default 1.5rem */
    }

    .meta-item {
        flex-basis: 100%;
        justify-content: flex-start;
        word-break: normal;
        overflow-wrap: break-word;
        max-width: 90%;
        /* Constrain width to prevent awkward breaks */
        text-align: left;
        line-height: 1.4;
        /* Tighter line height */
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        /* Space for active border */
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 2rem;
        /* Extra right padding for fade effect */
    }

    .tab-btn {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-width: fit-content;
        /* Ensure buttons don't compress */
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .listing-card {
        height: auto !important;
        margin-bottom: 1rem;
    }

    .listing-card-content {
        flex: 1 0 auto !important;
    }

    /* Fix for My Listings action buttons on mobile (no hover on touch devices) */
    .listing-actions-overlay {
        position: static !important;
        transform: translateY(0) !important;
        background: #f8fafc !important;
        padding: 1rem !important;
        margin: 1.5rem -1.5rem -1.5rem -1.5rem !important;
        border-top: 1px solid #e2e8f0;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
    }

    .action-btn {
        flex: 1 1 auto !important;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .stats-dashboard {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Premium Switch (Reuse pattern from Post Ad) */
.premium-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0; /* Prevent switch from squishing */
}

.premium-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.premium-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 24px;
}

.premium-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.premium-switch input:checked+.premium-switch-slider {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.premium-switch input:checked+.premium-switch-slider:before {
    transform: translateX(20px);
}

/* ── Privacy Control Rows ── */
.privacy-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    gap: 1.5rem; /* Ensure space between text and switch */
}

.privacy-control-row.no-border {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.privacy-control-text {
    flex: 1;
    min-width: 0; /* Allow text to wrap/truncate if needed */
}

.privacy-control-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.privacy-control-desc {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ── Phone Number Section ── */
.phone-input-container {
    display: flex;
    gap: 8px;
    align-items: stretch; /* Match height of prefix and button */
}

.phone-prefix {
    background: #f1f5f9;
    border: 2px solid #E5DDD5;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    margin-right: -10px; /* Overlap with input border */
    position: relative;
    z-index: 1;
}

.phone-main-input {
    flex: 1;
    min-width: 0;
    border-radius: 0 8px 8px 0 !important;
    padding-left: 15px !important;
}

.phone-verify-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.phone-verify-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.phone-verify-btn:disabled {
    cursor: default;
    transform: none;
    opacity: 1;
}

@media (max-width: 600px) {
    .phone-input-container {
        flex-wrap: wrap;
    }
    
    .phone-prefix {
        border-right: 2px solid #E5DDD5;
        border-radius: 8px;
        margin-right: 0;
        height: 45px;
    }
    
    .phone-main-input {
        border-radius: 8px !important;
        height: 45px;
        padding-left: 12px !important;
    }
    
    .phone-verify-btn {
        width: 100%;
        height: 45px;
        justify-content: center;
        margin-top: 4px;
    }
}


@media (max-width: 480px) {
    .privacy-control-row {
        align-items: flex-start; /* Better alignment when text wraps */
    }
    
    .premium-switch {
        margin-top: 4px; /* Align with first line of label */
    }
}

/* ════════════════════════════════════════════════════════
   DANGER ZONE — Account Deletion UI
   ════════════════════════════════════════════════════════ */
.danger-zone {
    border: 2px solid #fee2e2 !important;
    background: #fff5f5 !important;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 2rem;
}

.danger-zone-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #fecaca;
}

.danger-zone-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #b91c1c;
    margin: 0 0 0.15rem;
}

.danger-zone-subtitle {
    font-size: 0.82rem;
    color: #9f1239;
    margin: 0;
}

.danger-zone-body {
    padding: 1.25rem 1.5rem;
}

.danger-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.danger-action-label {
    font-weight: 700;
    color: #b91c1c;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.danger-action-desc {
    font-size: 0.82rem;
    color: #7f1d1d;
    line-height: 1.5;
    max-width: 520px;
}

.btn-danger-delete {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-danger-delete:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* ── Delete Account Modals ── */
.da-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.da-modal {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
    animation: daModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes daModalIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.da-modal-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.da-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.75rem;
}

.da-modal-body {
    font-size: 0.92rem;
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.da-delete-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 1rem;
    max-width: 300px;
    text-align: left;
}

.da-delete-list li {
    font-size: 0.85rem;
    color: #374151;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.da-modal-note {
    font-size: 0.78rem;
    color: #64748b;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    margin: 0.75rem auto 1.5rem;
    text-align: left;
    max-width: 320px;
}

.da-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.da-btn-cancel {
    flex: 1;
    max-width: 160px;
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.da-btn-cancel:hover { background: #f1f5f9; }

.da-btn-confirm {
    flex: 1;
    max-width: 160px;
    padding: 0.7rem 1rem;
    background: #2F5D3A;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.da-btn-confirm:hover { background: #1e3d27; }

.da-btn-danger {
    background: #ef4444 !important;
}
.da-btn-danger:hover { background: #b91c1c !important; }

.da-form-group {
    text-align: left;
    margin: 1.25rem 0;
}

.da-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.da-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.da-input:focus { border-color: #ef4444; }

.da-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.4rem;
    font-weight: 600;
}

/* Progress spinner */
.da-progress-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #fee2e2;
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: daSpin 0.9s linear infinite;
    margin: 0 auto;
}
@keyframes daSpin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .danger-action-row { flex-direction: column; align-items: flex-start; }
    .btn-danger-delete { width: 100%; }
}
