/**
 * Marriage App - Modern Professional UI Styles
 */

/* ========================================
   GLOBAL STYLES & RESET
   ======================================== */
:root {
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    --primary-pink: #ec4899;
    --primary-pink-light: #f472b6;
    --primary-pink-dark: #db2777;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.marriage-login-container {
    max-width: 480px;
    margin: 60px auto;
    padding: 48px 40px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.marriage-login-form {
    text-align: center;
}

.marriage-login-form h2 {
    margin-bottom: 16px;
    color: var(--gray-900);
    font-size: 28px;
    font-weight: 700;
}

.marriage-login-form p {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 16px;
}

.marriage-google-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 320px;
}

.marriage-google-login:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.marriage-google-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: #fff;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.marriage-welcome {
    text-align: center;
}

.marriage-welcome h2 {
    margin-bottom: 16px;
    color: var(--gray-900);
    font-size: 28px;
    font-weight: 700;
}

.marriage-welcome p {
    margin-bottom: 24px;
    color: var(--gray-600);
    font-size: 16px;
}

.marriage-error {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 24px;
    color: #92400e;
    font-size: 14px;
}

/* ========================================
   DASHBOARD
   ======================================== */
.marriage-app-dashboard {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    max-width: 800px;
    margin: 40px auto;
}

.marriage-app-dashboard h2 {
    margin-bottom: 16px;
    color: var(--gray-900);
    font-size: 32px;
    font-weight: 700;
}

.marriage-app-dashboard p {
    margin-bottom: 32px;
    color: var(--gray-600);
    font-size: 18px;
}

.marriage-app-dashboard .button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    margin: 8px;
}

.marriage-app-dashboard .button-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.marriage-app-dashboard .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   PROFILE FORM CONTAINER
   ======================================== */
.marriage-profile-form-container {
    max-width: 1000px;
    /* margin: 40px auto; */
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    margin-bottom: 0 !important;
}

.marriage-profile-form-container .marriage-form {
    background: #caedfb;
}

.marriage-info-box {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

/* ========================================
   FORM STYLES - MODERN & PROFESSIONAL
   ======================================== */
.marriage-form {
    max-width: 100%;
    margin: 0;
    padding: 48px 56px 0 56px;
    background: #caedfb;
    border-radius: 0;
    font-family: inherit;
    box-shadow: none;
    border: none;
    display: block;
}

.marriage-form h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    padding-bottom: 0;
    border-bottom: none;
}

/* Full width elements */
.marriage-form hr,
.marriage-form .options,
.marriage-form .private-section,
.marriage-form button {
    width: 100%;
}

.marriage-form hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 32px 0;
}

/* Field Styling */
.marriage-form .field {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 20px;
    gap: 15px;
}

.marriage-form .field label:first-child {
    min-width: 200px;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0;
    margin-bottom: 0;
    text-align: left;
}

.marriage-form .field input[type="text"],
.marriage-form .field input[type="number"],
.marriage-form .field input[type="date"],
.marriage-form .field input[type="email"] {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #a1a1a1;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    color: #000000;
    background: #ffffff;
    transition: all 0.2s ease;
    max-width: 300px;
}

.marriage-form .field .unit {
    font-size: 14px;
    color: #000000;
    margin-left: 5px;
}

.marriage-form input:focus,
.dowry-request-form input:focus,
.marriage-form textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: none;
}

.marriage-form textarea {
    flex: 1;
    min-height: 80px;
    resize: vertical;
    line-height: 1.6;
    padding: 8px 12px;
    border: 1px solid #000000;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    color: #000000;
    background: #ffffff;

    min-width: 500px;
}

.marriage-form .star {
    color: var(--error);
    margin-left: 4px;
}

.marriage-form .required-asterisk {
    color: #ff0000;
    margin-left: 3px;
    font-weight: 700;
}

.marriage-form .field-error {
    display: block;
    color: #ff0000;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 400;
}

/* Readonly Mode Styles */
.marriage-form.readonly-mode .required-asterisk {
    display: none;
}

.marriage-form.readonly-mode .readonly-value {
    display: inline-block;
    font-size: 14px;
    color: #000000;
    font-weight: 400;
    padding: 8px 0;
    line-height: 1.6;
}

.marriage-form.readonly-mode .field.options .readonly-value {
    display: block;
    margin-top: 8px;
}

.marriage-form.readonly-mode button[type="submit"] {
    display: none;
}

/* Readonly Actions */
.marriage-form.readonly-mode .readonly-actions {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-top: 0;
}

.marriage-form.readonly-mode .find-matches-btn {
    margin-top: 32px;
    padding: 18px 30px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    width: 30%;
    display: inline-block;
    text-align: center;
}

.marriage-form.readonly-mode .find-matches-btn:hover {
    background: #333333;
    transform: none;
    box-shadow: none;
    color: #ffffff;
}

.marriage-form.readonly-mode .edit-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    height: 60px;
    background: #f3f4f6;
    border: 2px solid #a1a1a1;
    border-radius: 0;
    text-decoration: none;
    color: #374151;
    /* transition: all 0.2s ease; */
}

.marriage-form.readonly-mode .edit-profile-btn .edit-profile-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.marriage-form.readonly-mode .edit-profile-btn:hover {
    background: #e5e7eb;
    color: #111827;
    transform: none;
    box-shadow: none;
}

.marriage-form.readonly-mode .edit-profile-btn-disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.marriage-form.readonly-mode .edit-profile-btn-disabled:hover {
    background: #f3f4f6;
    color: #374151;
    transform: none;
    box-shadow: none;
}

.profile-lock-message {
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

.marriage-form.readonly-mode .edit-profile-btn:hover .edit-profile-text {
    color: #111827;
}

/* Profile Navigation Buttons */
.profile-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 32px;
}

.profile-nav-btn {
    padding: 18px 30px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
    display: inline-block;
}

.profile-nav-btn:hover {
    background: #333333;
    color: #ffffff;
    text-decoration: none;
}

.profile-nav-btn:active {
    transform: none;
}

.profile-nav-btn[style*="opacity: 0.5"] {
    pointer-events: none;
    cursor: not-allowed;
}

/* Options/Checkbox Groups */
.marriage-form .options {
    display: block;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    margin-bottom: 20px;
}

.marriage-form .options > label:first-child {
    display: block;
    min-width: auto;
    width: 100%;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 14px;
    color: #000000;
    padding-bottom: 0;
    border-bottom: none;
    text-align: left;
}

.marriage-form .options > label:not(:first-child) {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    padding: 0 0 0 15px;
    border-radius: 0;
    transition: none;
    margin-bottom: 8px;
}

.marriage-form .options > label:not(:first-child):hover {
    background: transparent;
}

.marriage-form input[type="radio"],
.marriage-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000000;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #000000;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    position: relative;
}

.marriage-form input[type="radio"] {
    border-radius: 0;
}

.marriage-form input[type="checkbox"] {
    border-radius: 0;
}

.marriage-form input[type="checkbox"]:checked {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M10 3L4.5 8.5L2 6l1.5-1.5L4.5 6L8.5 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.marriage-form input[type="radio"]:checked {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M10 3L4.5 8.5L2 6l1.5-1.5L4.5 6L8.5 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

/* Alone checkbox field */
.marriage-form .field.checkbox-alone {
    margin-bottom: 20px;
    margin-top: 0;
}

.marriage-form .field.checkbox-alone label {
    min-width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    width: 100%;
}

/* Photo Upload Fields */
.marriage-form .field.photo-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.marriage-form .field.photo-field label:first-child {
    min-width: auto;
    width: 100%;
    margin-bottom: 10px;
}

.marriage-form .photo-upload-wrapper {
    position: relative;
    display: inline-block;
}

.marriage-form .photo-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.marriage-form .photo-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #9e9e9e;
    color: #000;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
    transition: background 0.2s ease;
    border: 2px solid #a1a1a1;
}

.marriage-form .photo-upload-btn:hover {
    background: #757575;
}

.marriage-form .photo-file-name {
    display: inline-block;
    margin-left: 15px;
    font-size: 14px;
    color: #000000;
    font-weight: 400;
    vertical-align: middle;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marriage-form .photo-file-name:empty {
    display: none;
}

/* File Input */
.marriage-form input[type="file"] {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    transition: none;
}

.marriage-form input[type="file"]:hover {
    border-color: transparent;
    background: transparent;
}

.marriage-form input[type="file"]::-webkit-file-upload-button {
    display: none;
}

/* Photo Preview */
.photo-preview {
    margin-bottom: 16px;
    border: 2px solid var(--gray-200);
    padding: 12px;
    display: inline-block;
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    max-width: 100%;
}

.photo-preview img {
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-sm);
}

/* Private Section (Dowry) */
.marriage-form .private-section {
    background: #d3d3d3 !important;
    padding: 32px 56px;
    border-radius: 0;
    border: none !important;
    margin-top: 30px;
    /* margin-bottom: 30px; */
    margin-left: -56px;
    margin-right: -56px;
    width: calc(100% + 112px);
    position: relative;
}

.marriage-form .private-section p {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 20px;
}

.marriage-form .private-section .field {
    margin-bottom: 20px;
}

.marriage-form .private-section .dowry-formula {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Submit Button */
.marriage-form button[type="submit"] {
    margin-top: 32px;
    padding: 18px 30px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    width: 30%;
}

.marriage-form button[type="submit"]:hover {
    background: #333333;
    transform: none;
    box-shadow: none;
}

.marriage-form button[type="submit"]:active {
    transform: none;
}

/* Gender-based backgrounds */
.marriage-form-container-male,
.marriage-form-container-male .marriage-form {
    background: #caedfb !important;
}

.marriage-form-container-male .marriage-form {
    border-left: none;
}

.marriage-form-container-female,
.marriage-form-container-female .marriage-form {
    background: #fce7f3 !important;
}

.marriage-form-container-female .marriage-form {
    border-left: none;
}

/* Dowry form gender backgrounds */
.marriage-form-special.male-theme {
    background: transparent;
}

.marriage-form-special.female-theme {
    background: transparent;
}

.marriage-form-special.male-theme .special-form-wrapper {
    border-left: 4px solid var(--primary-blue);
    background: linear-gradient(135deg, #a4f9f7 0%, #d1fae5 100%);
}

.marriage-form-special.female-theme .special-form-wrapper {
    border-left: 4px solid var(--primary-pink);
    background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
}

/* Dowry section - grey background */
.marriage-form .private-section {
    background: #f3f4f6 !important;
    border: 2px solid #d1d5db;
}

/* ========================================
   DOWRY FORM
   ======================================== */
.marriage-form-special {
    max-width: 650px;
    margin: 50px auto;
    padding: 20px;
    font-family: inherit;
}

.special-form-wrapper {
    background: #ffffff;
    padding: 40px 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.special-form-wrapper h2 {
    text-align: center;
    color: var(--gray-900);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 32px 0;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-100);
}

.dowry-note {
    display: block;
    text-align: center;
    color: #1e40af;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 32px;
    border: 2px solid #93c5fd;
}

.dowry-field {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dowry-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-800);
    font-size: 15px;
    line-height: 1.5;
}

.dowry-field input[type="text"] {
    width: 100%;
    padding: 16px 20px 16px 50px;
    margin-bottom: 8px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    background-color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%234b5563" stroke-width="2"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>');
    background-repeat: no-repeat;
    background-position: 18px center;
}

.dowry-field input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dowry-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

#submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   PROFILE DETAILS PAGE - MODERN REDESIGN
   ======================================== */

/* ========================================
   MODERN PROFILE VIEW - BEAUTIFUL UI
   ======================================== */

/* Modern Profile Hero */
.profile-hero-modern {
    position: relative;
    margin: 0 0 60px;
    overflow: hidden;
    width: 100%;
}

.profile-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
}

.profile-male .profile-hero-background {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.profile-female .profile-hero-background {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.profile-hero-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Adjust for WordPress block editor constraints */
.entry-content .profile-hero-container,
.wp-block-post-content .profile-hero-container,
.alignfull .profile-hero-container,
.is-layout-constrained .profile-hero-container,
.has-global-padding .profile-hero-container {
    padding: 0 40px;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Override WordPress block constraints */
.entry-content.alignfull .profile-hero-modern,
.wp-block-post-content.alignfull .profile-hero-modern {
    margin-left: calc(-1 * var(--wp--preset--spacing--large, 40px));
    margin-right: calc(-1 * var(--wp--preset--spacing--large, 40px));
    width: calc(100% + (2 * var(--wp--preset--spacing--large, 40px)));
}

.profile-hero-content {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    padding: 120px 0 40px;
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
}

.profile-avatar-wrapper {
    flex-shrink: 0;
}

.profile-avatar {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 24px;
    overflow: hidden;
    border: 6px solid #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-hero-info {
    flex: 1;
    min-width: 300px;
    padding-bottom: 8px;
}

.profile-name-modern {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
}

.meta-item svg {
    opacity: 0.9;
}

.profile-actions-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f9fafb;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.btn-outline:hover {
    background: #ffffff;
    color: #5568d3;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.profile-male .btn-outline {
    color: #4facfe;
}

.profile-male .btn-outline:hover {
    color: #0099e6;
}

.profile-female .btn-outline {
    color: #fa709a;
}

.profile-female .btn-outline:hover {
    color: #e85581;
}

/* Modern Profile Container */
.profile-modern-container {
    max-width: 100%;
    width: 100%;
    margin: 0 0 80px;
    padding: 0 24px;
}

/* Adjust for WordPress block editor constraints */
.entry-content .profile-modern-container,
.wp-block-post-content .profile-modern-container,
.alignfull .profile-modern-container,
.is-layout-constrained .profile-modern-container,
.has-global-padding .profile-modern-container {
    padding: 0 40px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Override WordPress block constraints for full width */
.entry-content.alignfull .profile-modern-container,
.wp-block-post-content.alignfull .profile-modern-container {
    margin-left: calc(-1 * var(--wp--preset--spacing--large, 40px));
    margin-right: calc(-1 * var(--wp--preset--spacing--large, 40px));
    width: calc(100% + (2 * var(--wp--preset--spacing--large, 40px)));
}

.profile-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 100%;
}

/* Modern Profile Cards */
.profile-card-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.profile-male .profile-card-modern::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.profile-female .profile-card-modern::before {
    background: linear-gradient(90deg, #fa709a, #fee140);
}

.profile-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.profile-card-modern:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 20px;
}

.profile-male .card-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.profile-female .card-icon {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
    letter-spacing: -0.3px;
}

.card-content-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row-modern {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label-modern {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value-modern {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
}

/* Financial Card */
.financial-card {
    grid-column: span 1;
}

.financial-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.financial-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.dowry-card-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    border: 2px solid #fbbf24;
}

.dowry-icon {
    font-size: 40px;
    line-height: 1;
}

.dowry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dowry-label-modern {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dowry-amount-modern {
    font-size: 28px;
    font-weight: 800;
    color: #78350f;
    letter-spacing: -0.5px;
}

/* Photos Gallery */
.photos-card-modern {
    grid-column: span 2;
}

.photos-gallery-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.photo-card-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.photo-wrapper-modern {
    position: relative;
    width: 100%;
    padding-top: 75%;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-wrapper-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.photo-image-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-label-modern {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Modern Profile */
@media (max-width: 1024px) {
    .entry-content .profile-hero-container,
    .wp-block-post-content .profile-hero-container,
    .alignfull .profile-hero-container,
    .is-layout-constrained .profile-hero-container,
    .has-global-padding .profile-hero-container {
        padding: 0 32px !important;
    }

    .entry-content .profile-modern-container,
    .wp-block-post-content .profile-modern-container,
    .alignfull .profile-modern-container,
    .is-layout-constrained .profile-modern-container,
    .has-global-padding .profile-modern-container {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .profile-modern-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .photos-card-modern {
        grid-column: span 1;
    }

    .photos-gallery-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 100px 0 32px;
    }

    .profile-name-modern {
        font-size: 36px;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-actions-modern {
        width: 100%;
        justify-content: center;
    }

    .btn-modern {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }

    .entry-content .profile-hero-container,
    .wp-block-post-content .profile-hero-container,
    .alignfull .profile-hero-container,
    .is-layout-constrained .profile-hero-container,
    .has-global-padding .profile-hero-container {
        padding: 0 24px !important;
    }

    .entry-content .profile-modern-container,
    .wp-block-post-content .profile-modern-container,
    .alignfull .profile-modern-container,
    .is-layout-constrained .profile-modern-container,
    .has-global-padding .profile-modern-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .profile-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-card-modern {
        padding: 24px;
    }

    .photos-card-modern {
        grid-column: span 1;
    }

    .photos-gallery-modern {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design for Profile View */
@media (max-width: 768px) {
    .profile-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-photo-wrapper {
        width: 150px;
        height: 150px;
    }

    .profile-name {
        font-size: 32px;
    }

    .profile-actions {
        justify-content: center;
        width: 100%;
    }

    .profile-actions .edit-profile-btn,
    .profile-actions .fetch-profile-btn {
        flex: 1;
        min-width: 140px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .financial-grid {
        grid-template-columns: 1fr;
    }

    .photos-gallery {
        grid-template-columns: 1fr;
    }

    .dowry-amount {
        font-size: 28px;
    }
}

.profile-header {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.profile-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.profile-header .photo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    border: none;
    padding: 0;
    background: none;
}

.profile-header .photo-box .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-header .photo-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.edit-profile-btn,
.fetch-profile-btn {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: inline-block;
}

.edit-profile-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

.edit-profile-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.fetch-profile-btn {
    background: #ffffff;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    margin-left: 12px;
}

.fetch-profile-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

/* Match-made notification (styled like success message, below it; blue/teal variant) */
.marriage-match-made-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.marriage-match-made-notification .marriage-match-made-view-btn {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.marriage-match-made-notification .marriage-match-made-view-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.profile-section {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.profile-section:hover {
    box-shadow: var(--shadow-md);
}

.profile-section h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row .label {
    color: var(--gray-600);
    font-weight: 600;
    min-width: 180px;
}

.profile-row .value {
    color: var(--gray-900);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.profile-sections {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.profile-sections .photo-box {
    width: 200px;
    height: 260px;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-lg);
    background: var(--gray-100);
    padding: 0;
    display: block;
    border-radius: var(--radius-md);
}

.profile-sections .photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-sections .label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    padding: 6px 0;
    margin: 0;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   PROFILE CARDS (LIST/GRID)
   ======================================== */
.profiles-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    margin: 40px auto;
    max-width: 1400px;
}

.profile-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.profile-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--primary-blue);
}

.card-banner {
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.profile-card.profile-female .card-banner {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-pink-light) 100%);
}

.card-body {
    padding: 0 20px 24px 20px;
    margin-top: -50px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.profile-pic {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.profile-pic img,
.profile-pic .no-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-lg);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-500);
}

.profile-info-group {
    margin-bottom: 20px;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-location {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

.view-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.view-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   PROFILE VIEW (DETAILED VIEW)
   ======================================== */
.profile-view-wrapper {
    padding: 0;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    position: relative;
}

/* Override WordPress block editor constraints for full width */
.entry-content .profile-view-wrapper,
.wp-block-post-content .profile-view-wrapper,
.alignfull .profile-view-wrapper,
.is-layout-constrained .profile-view-wrapper,
.has-global-padding .profile-view-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

.profile-view-wrapper.marriage_uniq_female {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fdf2f8 100%);
}

.profile-view-wrapper.marriage_uniq_male {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #eff6ff 100%);
}

.profile-main-card {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: none;
    position: relative;
    min-height: 100vh;
}

.profile-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 10;
}

.profile-view-wrapper.marriage_uniq_female .profile-main-card::before {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.profile-view-wrapper.marriage_uniq_male .profile-main-card::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.profile-sidebar {
    width: 420px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 48px 40px;
    text-align: center;
    border-right: 2px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.03);
}

.sidebar-photo-container {
    width: 280px;
    height: 350px;
    margin: 0 auto 32px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: var(--gray-200);
    border: 6px solid #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.sidebar-photo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.sidebar-photo-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.sidebar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-no-pic {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    background: var(--gray-100);
}

.sidebar-no-pic span {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-blue);
}

.sidebar-name {
    font-size: 32px;
    margin: 24px 0 12px;
    color: var(--gray-900);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-view-wrapper.marriage_uniq_female .sidebar-name {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-view-wrapper.marriage_uniq_male .sidebar-name {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-location {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.profile-content {
    flex: 1;
    padding: 56px 56px;
    background: #ffffff;
    position: relative;
}

.content-header {
    font-size: 36px;
    color: var(--gray-900);
    margin-bottom: 48px;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%) 1;
    padding-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
}

.content-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.profile-view-wrapper.marriage_uniq_female .content-header::after {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.profile-view-wrapper.marriage_uniq_male .content-header::after {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.info-block {
    margin-bottom: 40px;
}

.info-block h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-grid .item {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.info-grid .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.profile-view-wrapper.marriage_uniq_female .info-grid .item::before {
    background: linear-gradient(180deg, #fa709a 0%, #fee140 100%);
}

.profile-view-wrapper.marriage_uniq_male .info-grid .item::before {
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
}

.info-grid .item:hover {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.info-grid .item:hover::before {
    width: 8px;
}

.info-grid .item.full-width {
    grid-column: span 2;
}

.info-grid label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-grid span {
    font-size: 16px;
    color: var(--gray-900);
    font-weight: 600;
}

.financial-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
    padding: 40px;
    border-radius: 24px;
    border: 3px solid #fbbf24;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.financial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.money-highlight {
    color: var(--success) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

.money-debt {
    color: var(--error) !important;
    font-weight: 600 !important;
}

.dowry-requests {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.req-box {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.req-box label {
    font-size: 12px;
    opacity: 0.9;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.req-box strong {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-bio-box {
    background: #ffffff;
    border: 2px dashed var(--gray-300);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    text-align: left;
    position: relative;
}

.sidebar-bio-box::before {
    content: '"';
    position: absolute;
    top: -12px;
    left: 16px;
    font-size: 48px;
    color: var(--primary-blue);
    font-family: serif;
    background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
    line-height: 1;
    padding: 0 8px;
}

.bio-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 12px;
}

.bio-intent {
    font-size: 14px;
    color: var(--gray-900);
    font-style: italic;
    font-weight: 500;
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
}

.sidebar-actions {
    margin-top: 24px;
}

.btn-message {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none;
    padding: 18px 32px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-message:hover::before {
    left: 100%;
}

.profile-view-wrapper.marriage_uniq_female .btn-message {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 8px 24px rgba(250, 112, 154, 0.4);
}

.profile-view-wrapper.marriage_uniq_male .btn-message {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
}

.btn-message:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6b3f8f 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
    color: #fff !important;
}

.profile-view-wrapper.marriage_uniq_female .btn-message:hover {
    background: linear-gradient(135deg, #e85581 0%, #fdd835 100%);
    box-shadow: 0 12px 32px rgba(250, 112, 154, 0.5);
}

.profile-view-wrapper.marriage_uniq_male .btn-message:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d9fe 100%);
    box-shadow: 0 12px 32px rgba(79, 172, 254, 0.5);
}

.sidebar-marriage-intent {
    margin-top: 32px;
    padding: 24px;
    background: #fdf2f8;
    border-radius: var(--radius-lg);
    position: relative;
    border: 2px solid #fbcfe8;
}

.marriage_uniq_male .sidebar-marriage-intent {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.sidebar-marriage-intent p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-700);
    font-style: italic;
    margin: 0;
    text-align: center;
}

.sidebar-marriage-intent .dashicons {
    display: block;
    font-size: 24px;
    margin: 0 auto 12px;
    width: 24px;
    height: 24px;
    color: var(--primary-pink);
}

.marriage_uniq_male .sidebar-marriage-intent .dashicons {
    color: var(--primary-blue);
}

/* ========================================
   MODALS & POPUPS
   ======================================== */
#marriage-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#marriage-modal-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 480px;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

#close-marriage-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    color: var(--gray-400);
    transition: color 0.2s ease;
}

#close-marriage-modal:hover {
    color: var(--gray-900);
}

.connect-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    font-family: inherit;
}

.connect-popup .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    z-index: 99999;
    backdrop-filter: blur(4px);
}

.connect-popup .popup-inner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 520px;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    z-index: 100000;
    animation: popupFade 0.3s ease-in-out;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#connect-form h3 {
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--gray-900);
    font-weight: 700;
}

#connect-form textarea {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    resize: vertical;
    margin-bottom: 24px;
    min-height: 140px;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.2s ease;
}

#connect-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#connect-form button {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

#connect-form button:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#connect-form button#close-popup {
    background: var(--gray-300);
    color: var(--gray-700);
}

#connect-form button#close-popup:hover {
    background: var(--gray-400);
    color: var(--gray-900);
}

/* ========================================
   FORM VALIDATION ERRORS
   ======================================== */
.marriage-form .error,
.marriage-form input.error,
.marriage-form textarea.error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.marriage-form .error-field {
    border: 2px solid var(--error);
    border-radius: var(--radius-md);
    padding: 12px;
    background: #fef2f2;
}

.form-validation-error {
    background: #fee !important;
    border: 2px solid #fcc !important;
    padding: 16px 20px !important;
    margin: 0 0 24px 0 !important;
    border-radius: var(--radius-md) !important;
    color: #c00 !important;
    position: relative !important;
    z-index: 1000 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.form-validation-error strong {
    display: block !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.form-validation-error ul {
    margin: 10px 0 0 20px !important;
    padding-left: 20px !important;
    list-style-type: disc !important;
}

.form-validation-error li {
    margin: 5px 0 !important;
    font-size: 14px !important;
    display: list-item !important;
}

.input-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .profile-main-card {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-grid .item.full-width {
        grid-column: span 1;
    }

    .dowry-requests {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .marriage-form {
        padding: 32px 24px;
    }

    .marriage-form .private-section {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
        padding: 32px 24px;
    }

    .marriage-form .field {
        flex-direction: column;
        align-items: flex-start;
    }

    .marriage-form .field label:first-child {
        min-width: auto;
        width: 100%;
        margin-bottom: 8px;
    }

    .marriage-form .field input[type="text"],
    .marriage-form .field input[type="number"],
    .marriage-form .field input[type="date"],
    .marriage-form .field input[type="email"],
    .marriage-form .field textarea {
        max-width: 100%;
        width: 100%;
    }

    .profiles-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
        padding: 16px;
    }

    .profile-card {
        min-height: 360px;
    }

    .profile-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .special-form-wrapper {
        padding: 24px 20px;
    }

    .profile-content {
        padding: 32px 24px;
    }

    .content-header {
        font-size: 26px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .marriage-login-container {
        margin: 30px auto;
        padding: 32px 24px;
    }

    .marriage-form {
        padding: 24px 16px;
    }

    .marriage-form h2 {
        font-size: 24px;
    }

    .profiles-grid-container {
        grid-template-columns: 1fr;
    }

    .special-form-wrapper {
        padding: 20px 16px;
    }

    .special-form-wrapper h2 {
        font-size: 22px;
    }

    .profile-view-wrapper {
        padding: 0;
    }

    .profile-main-card {
        flex-direction: column;
        max-width: 100%;
    }

    .profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    }

    .profile-content {
        padding: 32px 24px;
    }

    .sidebar-photo-container {
        width: 220px;
        height: 280px;
    }

    .sidebar-name {
        font-size: 28px;
    }

    .content-header {
        font-size: 28px;
    }
}
