/**
 * Custom Login Registration - Public Styles
 *
 * Modern, beautiful forms with smooth animations
 */

/* CSS Variables */
:root {
    --clr-primary: #4f46e5;
    --clr-primary-hover: #4338ca;
    --clr-primary-light: rgba(79, 70, 229, 0.1);
    --clr-success: #10b981;
    --clr-success-light: rgba(16, 185, 129, 0.1);
    --clr-error: #ef4444;
    --clr-error-light: rgba(239, 68, 68, 0.1);
    --clr-warning: #f59e0b;
    --clr-warning-light: rgba(245, 158, 11, 0.1);
    --clr-text-primary: #18181b;
    --clr-text-secondary: #3f3f46;
    --clr-text-muted: #71717a;
    --clr-border: #e4e4e7;
    --clr-bg: #ffffff;
    --clr-bg-secondary: #f4f4f5;
    --clr-radius: 8px;
    --clr-radius-lg: 12px;
    --clr-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --clr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --clr-transition: all 0.2s ease;
    --clr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Form Wrapper */
.clr-form-wrapper {
    max-width: 440px;
    margin: 40px auto;
    padding: 40px;
    background: var(--clr-bg);
    border-radius: var(--clr-radius-lg);
    box-shadow: var(--clr-shadow-lg);
    font-family: var(--clr-font);
}

.clr-form-wrapper * {
    box-sizing: border-box;
}

/* Form Header */
.clr-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.clr-form-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--clr-text-primary);
    letter-spacing: -0.02em;
}

.clr-form-header p {
    margin: 0;
    color: var(--clr-text-muted);
    font-size: 15px;
}

/* Form Steps */
.clr-form-step {
    display: none;
    animation: clrFadeIn 0.3s ease;
}

.clr-form-step.active {
    display: block;
}

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

/* Field Wrapper */
.clr-field-wrapper {
    margin-bottom: 20px;
}

.clr-field-wrapper label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text-secondary);
}

.clr-required {
    color: var(--clr-error);
}

/* Inputs */
.clr-input,
.clr-textarea,
.clr-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--clr-text-primary);
    background: var(--clr-bg);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--clr-radius);
    transition: var(--clr-transition);
    outline: none;
}

.clr-input:hover,
.clr-textarea:hover,
.clr-select:hover {
    border-color: #a1a1aa;
}

.clr-input:focus,
.clr-textarea:focus,
.clr-select:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px var(--clr-primary-light);
}

.clr-input::placeholder,
.clr-textarea::placeholder {
    color: #a1a1aa;
}

.clr-input.error,
.clr-textarea.error,
.clr-select.error {
    border-color: var(--clr-error);
}

.clr-input.error:focus,
.clr-textarea.error:focus {
    box-shadow: 0 0 0 3px var(--clr-error-light);
}

.clr-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Rows */
.clr-form-row {
    display: flex;
    gap: 16px;
}

.clr-form-row-half > .clr-field-wrapper {
    flex: 1;
}

/* Password Wrapper */
.clr-password-wrapper {
    position: relative;
}

.clr-password-wrapper .clr-input {
    padding-right: 48px;
}

.clr-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--clr-text-muted);
    transition: var(--clr-transition);
}

.clr-password-toggle:hover {
    color: var(--clr-text-secondary);
}

.clr-icon-eye::before {
    content: "👁";
    font-size: 16px;
}

.clr-password-toggle.active .clr-icon-eye::before {
    content: "🙈";
}

/* Password Strength */
.clr-password-strength {
    height: 4px;
    background: var(--clr-bg-secondary);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.clr-password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: var(--clr-transition);
}

.clr-password-strength.weak .clr-password-strength-bar {
    width: 25%;
    background: var(--clr-error);
}

.clr-password-strength.fair .clr-password-strength-bar {
    width: 50%;
    background: var(--clr-warning);
}

.clr-password-strength.good .clr-password-strength-bar {
    width: 75%;
    background: #22c55e;
}

.clr-password-strength.strong .clr-password-strength-bar {
    width: 100%;
    background: var(--clr-success);
}

/* Password Requirements */
.clr-password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.clr-password-requirements .clr-req {
    font-size: 12px;
    color: var(--clr-text-muted);
    padding: 4px 8px;
    background: var(--clr-bg-secondary);
    border-radius: 4px;
    transition: var(--clr-transition);
}

.clr-password-requirements .clr-req.met {
    color: var(--clr-success);
    background: var(--clr-success-light);
}

/* Username availability indicator */
.clr-username-wrapper .clr-username-input-wrapper {
    position: relative;
}

.clr-username-wrapper .clr-username-input-wrapper .clr-input {
    padding-right: 40px;
}

.clr-username-status-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    transition: var(--clr-transition);
}

.clr-username-wrapper.clr-username-checking .clr-username-status-icon::before {
    content: "⏳";
    color: var(--clr-text-muted);
}

.clr-username-wrapper.clr-username-valid .clr-username-status-icon::before {
    content: "✔";
    color: var(--clr-success);
}

.clr-username-wrapper.clr-username-invalid .clr-username-status-icon::before {
    content: "✕";
    color: var(--clr-error);
}

/* Checkbox & Radio */
.clr-checkbox-label,
.clr-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--clr-text-secondary);
}

.clr-checkbox-label input,
.clr-radio-label input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--clr-primary);
    cursor: pointer;
}

.clr-checkbox-label a,
.clr-radio-label a {
    color: var(--clr-primary);
    text-decoration: none;
}

.clr-checkbox-label a:hover,
.clr-radio-label a:hover {
    text-decoration: underline;
}

.clr-checkbox-group,
.clr-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* OTP Inputs */
.clr-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 24px 0;
}

.clr-otp-input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--clr-text-primary);
    background: var(--clr-bg);
    border: 2px solid var(--clr-border);
    border-radius: var(--clr-radius);
    transition: var(--clr-transition);
    outline: none;
}

.clr-otp-input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px var(--clr-primary-light);
}

.clr-otp-input.filled {
    border-color: var(--clr-primary);
    background: var(--clr-primary-light);
}

.clr-otp-email {
    font-weight: 600;
    color: var(--clr-text-primary);
}

/* OTP Timer */
.clr-otp-timer {
    text-align: center;
    margin: 16px 0;
    font-size: 14px;
    color: var(--clr-text-muted);
}

.clr-timer-countdown {
    font-weight: 600;
    color: var(--clr-text-primary);
}

.clr-timer-countdown.expiring {
    color: var(--clr-error);
}

/* Resend Wrapper */
.clr-resend-wrapper {
    text-align: center;
    margin-top: 24px;
}

.clr-resend-wrapper p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--clr-text-muted);
}

/* Buttons */
.clr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    border-radius: var(--clr-radius);
    cursor: pointer;
    transition: var(--clr-transition);
}

.clr-btn-primary {
    color: #ffffff;
    background: var(--clr-primary);
}

.clr-btn-primary:hover {
    background: var(--clr-primary-hover);
    transform: translateY(-1px);
}

.clr-btn-primary:active {
    transform: translateY(0);
}

.clr-btn-secondary {
    color: var(--clr-text-primary);
    background: var(--clr-bg-secondary);
}

.clr-btn-secondary:hover {
    background: #e4e4e7;
}

.clr-btn-danger {
    color: #ffffff;
    background: var(--clr-error);
}

.clr-btn-danger:hover {
    background: #dc2626;
}

.clr-btn-full {
    width: 100%;
}

.clr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.clr-btn-loading {
    display: none;
}

.clr-btn.loading .clr-btn-text {
    display: none;
}

.clr-btn.loading .clr-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clr-btn.loading .clr-btn-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: clrSpin 0.8s linear infinite;
}

@keyframes clrSpin {
    to {
        transform: rotate(360deg);
    }
}

.clr-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-primary);
    cursor: pointer;
    font-family: inherit;
    transition: var(--clr-transition);
}

.clr-link-btn:hover {
    color: var(--clr-primary-hover);
    text-decoration: underline;
}

.clr-link-btn:disabled {
    color: var(--clr-text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

.clr-back-btn {
    margin-top: 16px;
}

/* Links */
.clr-link {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--clr-transition);
}

.clr-link:hover {
    color: var(--clr-primary-hover);
    text-decoration: underline;
}

.clr-forgot-link {
    font-size: 13px;
    font-weight: 500;
}

/* Form Actions */
.clr-form-actions {
    margin-top: 24px;
}

/* Form Message */
.clr-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--clr-radius);
    font-size: 14px;
    animation: clrFadeIn 0.3s ease;
}

.clr-form-message.success {
    color: #065f46;
    background: var(--clr-success-light);
    border: 1px solid #a7f3d0;
}

.clr-form-message.error {
    color: #991b1b;
    background: var(--clr-error-light);
    border: 1px solid #fecaca;
}

/* Form Footer */
.clr-form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--clr-border);
}

.clr-form-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--clr-text-muted);
}

/* Success Icon */
.clr-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--clr-success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-success);
}

.clr-success-icon svg {
    width: 40px;
    height: 40px;
}

#clr-success-step {
    text-align: center;
}

#clr-success-step h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--clr-text-primary);
}

#clr-success-step p {
    margin: 0 0 24px;
    color: var(--clr-text-muted);
}

/* Field Notes */
.clr-field-note {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--clr-text-muted);
}

/* Honeypot */
.clr-hp-field,
.clr-hp-field-2 {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* CAPTCHA Wrapper */
.clr-captcha-wrapper {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* ========================================
   PROFILE STYLES
   ======================================== */

.clr-profile-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: var(--clr-font);
}

/* Profile Header */
.clr-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--clr-bg);
    border-radius: var(--clr-radius-lg);
    box-shadow: var(--clr-shadow);
    margin-bottom: 24px;
}

.clr-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--clr-bg-secondary);
}

.clr-profile-info {
    flex: 1;
}

.clr-profile-name {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 700;
    color: var(--clr-text-primary);
}

.clr-profile-email {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--clr-text-muted);
}

.clr-profile-bio {
    margin: 0;
    font-size: 14px;
    color: var(--clr-text-secondary);
    line-height: 1.5;
}

/* Profile Completion */
.clr-profile-completion {
    padding: 20px 24px;
    background: var(--clr-primary-light);
    border-radius: var(--clr-radius);
    margin-bottom: 24px;
}

.clr-completion-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text-primary);
}

.clr-completion-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.clr-completion-progress {
    height: 100%;
    background: var(--clr-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.clr-completion-tip {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--clr-text-secondary);
}

.clr-completion-tip a {
    color: var(--clr-primary);
    font-weight: 500;
}

/* Profile Sections */
/* Profile Tabs */
.clr-profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--clr-bg);
    padding: 8px;
    border-radius: var(--clr-radius-lg);
    box-shadow: var(--clr-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.clr-profile-tabs::-webkit-scrollbar {
    height: 4px;
}

.clr-profile-tabs::-webkit-scrollbar-track {
    background: var(--clr-bg-secondary);
    border-radius: 2px;
}

.clr-profile-tabs::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: 2px;
}

.clr-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--clr-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text-secondary);
    cursor: pointer;
    transition: var(--clr-transition);
    white-space: nowrap;
    font-family: var(--clr-font);
    position: relative;
}

.clr-tab-btn:hover {
    background: var(--clr-bg-secondary);
    color: var(--clr-text-primary);
}

.clr-tab-btn.active {
    background: var(--clr-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.clr-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--clr-primary);
}

.clr-tab-icon {
    font-size: 18px;
    line-height: 1;
}

.clr-tab-text {
    font-weight: 500;
}

/* Tab Content */
.clr-profile-tab-content {
    position: relative;
    min-height: 400px;
}

.clr-tab-panel {
    display: none;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out;
}

.clr-tab-panel.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

/* Hide wallet content when not on wallet tab */
.clr-profile-tab-content:not(:has(#tab-wallet.active)) .rk-wallet-section,
.clr-profile-tab-content:not(:has(#tab-wallet.active)) [class*="wallet"],
.clr-profile-tab-content:not(:has(#tab-wallet.active)) [id*="wallet"],
.clr-profile-tab-content:not(:has(#tab-wallet.active)) [class*="Wallet"],
.clr-profile-tab-content:not(:has(#tab-wallet.active)) [id*="Wallet"] {
    display: none !important;
}

/* Fallback for browsers that don't support :has() */
.clr-tab-panel:not(#tab-wallet) .rk-wallet-section,
.clr-tab-panel:not(#tab-wallet) [class*="wallet"],
.clr-tab-panel:not(#tab-wallet) [id*="wallet"],
.clr-tab-panel:not(#tab-wallet) [class*="Wallet"],
.clr-tab-panel:not(#tab-wallet) [id*="Wallet"] {
    display: none !important;
}

/* Show wallet content only in wallet tab */
#tab-wallet [class*="wallet"],
#tab-wallet [id*="wallet"],
#tab-wallet [class*="Wallet"],
#tab-wallet [id*="Wallet"] {
    display: block;
}

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

.clr-profile-section {
    padding: 24px;
    background: var(--clr-bg);
    border-radius: var(--clr-radius-lg);
    box-shadow: var(--clr-shadow);
    margin-bottom: 24px;
}

.clr-profile-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--clr-text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--clr-border);
}

.clr-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.clr-profile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clr-item-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clr-item-value {
    font-size: 15px;
    color: var(--clr-text-primary);
}

.clr-item-value a {
    color: var(--clr-primary);
}

/* Orders List */
.clr-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clr-order-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--clr-bg-secondary);
    border-radius: var(--clr-radius);
    gap: 16px;
}

.clr-order-info {
    flex: 1;
}

.clr-order-number {
    font-weight: 600;
    color: var(--clr-text-primary);
}

.clr-order-date {
    font-size: 13px;
    color: var(--clr-text-muted);
    margin-left: 8px;
}

.clr-order-type {
    display: flex;
    align-items: center;
}

.clr-type-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-block;
}

.clr-type-accommodation {
    color: #1e40af;
    background: #dbeafe;
}

.clr-type-event {
    color: #7c3aed;
    background: #ede9fe;
}

.clr-type-other {
    color: #6b7280;
    background: #f3f4f6;
}

.clr-status-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.clr-status-completed,
.clr-status-processing {
    color: #065f46;
    background: var(--clr-success-light);
}

.clr-status-pending,
.clr-status-on-hold {
    color: #92400e;
    background: var(--clr-warning-light);
}

.clr-status-cancelled,
.clr-status-failed {
    color: #991b1b;
    background: var(--clr-error-light);
}

.clr-order-total {
    font-weight: 600;
    color: var(--clr-text-primary);
}

.clr-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--clr-bg-secondary);
}

.clr-section-header h3 {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.clr-section-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--clr-border);
}

.clr-orders-count {
    font-size: 14px;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* Pagination Styles */
.clr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--clr-bg-secondary);
    flex-wrap: wrap;
}

.clr-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--clr-bg);
    border: 2px solid var(--clr-border);
    border-radius: var(--clr-radius);
    color: var(--clr-text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--clr-transition);
    font-family: var(--clr-font);
    cursor: pointer;
}

.clr-pagination-btn:hover:not(.disabled) {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--clr-shadow);
}

.clr-pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--clr-bg-secondary);
}

.clr-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.clr-pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: var(--clr-bg);
    border: 2px solid var(--clr-border);
    border-radius: var(--clr-radius);
    color: var(--clr-text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--clr-transition);
    font-family: var(--clr-font);
}

.clr-pagination-number:hover {
    background: var(--clr-primary-light);
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    transform: translateY(-2px);
}

.clr-pagination-number.active {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.clr-pagination-dots {
    padding: 0 8px;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.clr-no-data {
    color: var(--clr-text-muted);
    text-align: center;
    padding: 24px;
}

/* Wallet Dashboard Styles */
.clr-wallet-section {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #6366f1 100%);
    color: #ffffff;
    padding: 32px;
}

.clr-wallet-section h3,
.clr-wallet-section h4 {
    color: #ffffff;
}

.clr-wallet-section .clr-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.clr-wallet-section .clr-link:hover {
    color: #ffffff;
}

.clr-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.clr-wallet-balance-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--clr-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clr-wallet-balance-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clr-wallet-balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.clr-wallet-transactions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--clr-radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clr-wallet-transactions h4 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.clr-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clr-transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--clr-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--clr-transition);
}

.clr-transaction-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.clr-transaction-info {
    flex: 1;
}

.clr-transaction-description {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.clr-transaction-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.clr-transaction-amount {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.clr-transaction-amount.clr-amount-credit {
    color: #10d876;
}

.clr-transaction-amount.clr-amount-debit {
    color: #ff6b6b;
}

.clr-wallet-section .clr-section-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.clr-wallet-section .clr-section-footer .clr-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Address Cards */
.clr-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.clr-address-card {
    background: var(--clr-bg-secondary);
    border-radius: var(--clr-radius-lg);
    padding: 24px;
    border: 2px solid var(--clr-border);
    transition: var(--clr-transition);
}

.clr-address-card:hover {
    border-color: var(--clr-primary);
    box-shadow: var(--clr-shadow);
    transform: translateY(-2px);
}

.clr-address-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--clr-border);
}

.clr-address-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--clr-text-primary);
}

.clr-address-content {
    color: var(--clr-text-secondary);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 16px;
    min-height: 80px;
}

.clr-address-actions {
    padding-top: 12px;
    border-top: 1px solid var(--clr-border);
}

.clr-btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* Quick Actions */
.clr-profile-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.clr-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--clr-bg);
    border-radius: var(--clr-radius);
    box-shadow: var(--clr-shadow);
    text-decoration: none;
    transition: var(--clr-transition);
}

.clr-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--clr-shadow-lg);
}

.clr-action-icon {
    font-size: 24px;
}

.clr-action-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text-primary);
}

.clr-action-logout {
    color: var(--clr-error);
}

.clr-action-logout .clr-action-text {
    color: var(--clr-error);
}

/* ========================================
   EDIT PROFILE STYLES
   ======================================== */

.clr-edit-profile-wrapper {
    display: flex;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    font-family: var(--clr-font);
}

/* Profile Navigation */
.clr-profile-nav {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--clr-bg);
    border-radius: var(--clr-radius-lg);
    box-shadow: var(--clr-shadow);
    height: fit-content;
    position: sticky;
    top: 24px;
}

.clr-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text-secondary);
    text-decoration: none;
    border-radius: var(--clr-radius);
    transition: var(--clr-transition);
}

.clr-nav-item:hover {
    background: var(--clr-bg-secondary);
    color: var(--clr-text-primary);
}

.clr-nav-item.active {
    background: var(--clr-primary-light);
    color: var(--clr-primary);
}

.clr-nav-danger {
    color: var(--clr-error) !important;
}

.clr-nav-danger:hover {
    background: var(--clr-error-light) !important;
}

/* Profile Content */
.clr-profile-content {
    flex: 1;
    min-width: 0;
}

.clr-edit-profile-wrapper .clr-profile-section {
    display: none;
    padding: 32px;
}

.clr-edit-profile-wrapper .clr-profile-section.active {
    display: block;
}

.clr-edit-profile-wrapper .clr-profile-section h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--clr-text-primary);
}

.clr-section-desc {
    margin: 0 0 24px;
    color: var(--clr-text-muted);
    font-size: 15px;
}

/* Avatar Upload */
.clr-avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.clr-current-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--clr-bg-secondary);
}

.clr-file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.clr-file-btn {
    padding: 10px 20px;
    background: var(--clr-bg-secondary);
    border-radius: var(--clr-radius);
    font-weight: 500;
    color: var(--clr-text-primary);
    transition: var(--clr-transition);
}

.clr-file-label:hover .clr-file-btn {
    background: #e4e4e7;
}

.clr-file-name {
    font-size: 14px;
    color: var(--clr-text-muted);
}

.clr-file-input {
    display: none;
}

/* Danger Zone */
.clr-danger-zone {
    border: 2px solid var(--clr-error-light);
    border-radius: var(--clr-radius);
    padding: 24px;
}

.clr-danger-warning {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--clr-error-light);
    border-radius: var(--clr-radius);
    margin-bottom: 24px;
}

.clr-warning-icon {
    font-size: 24px;
}

.clr-warning-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--clr-error);
}

.clr-warning-content p {
    margin: 0;
    font-size: 14px;
    color: #991b1b;
}

.clr-danger-checkbox {
    color: var(--clr-error) !important;
}

/* Logged In / Login Required */
.clr-logged-in-message,
.clr-login-required {
    text-align: center;
    padding: 40px;
    background: var(--clr-bg);
    border-radius: var(--clr-radius-lg);
    box-shadow: var(--clr-shadow);
}

.clr-logged-in-message p:first-child,
.clr-login-required p:first-child {
    margin: 0 0 20px;
    font-size: 18px;
    color: var(--clr-text-primary);
}

.clr-logged-in-message .clr-btn,
.clr-login-required .clr-btn {
    margin: 0 8px;
}

/* Account Menu */
.clr-account-menu {
    font-family: var(--clr-font);
}

.clr-account-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--clr-border);
}

.clr-account-menu-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.clr-account-name {
    font-weight: 600;
    color: var(--clr-text-primary);
}

.clr-account-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clr-account-menu-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--clr-text-secondary);
    text-decoration: none;
    transition: var(--clr-transition);
}

.clr-account-menu-list li a:hover {
    color: var(--clr-primary);
}

.clr-account-menu-logged-out {
    display: flex;
    gap: 12px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    /* Form Wrapper */
    .clr-form-wrapper {
        margin: 10px;
        padding: 20px;
    }

    .clr-form-header h2 {
        font-size: 22px;
    }

    .clr-form-row {
        flex-direction: column;
        gap: 0;
    }

    .clr-otp-input {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }

    /* Profile Wrapper */
    .clr-profile-wrapper {
        padding: 0 10px;
    }

    /* Profile Header */
    .clr-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        gap: 16px;
    }

    .clr-profile-avatar img {
        width: 100px;
        height: 100px;
    }

    .clr-profile-info {
        width: 100%;
    }

    .clr-profile-name {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .clr-profile-email {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .clr-profile-bio {
        font-size: 13px;
        line-height: 1.6;
    }

    .clr-profile-actions {
        width: 100%;
    }

    .clr-profile-actions .clr-btn {
        width: 100%;
        justify-content: center;
    }

    /* Profile Completion */
    .clr-profile-completion {
        padding: 16px;
        margin-bottom: 20px;
    }

    .clr-completion-header {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .clr-completion-tip {
        font-size: 12px;
        margin-top: 8px;
        line-height: 1.5;
    }

    /* Profile Tabs */
    .clr-profile-tabs {
        padding: 6px;
        gap: 4px;
        margin-bottom: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .clr-tab-btn {
        padding: 10px 14px;
        font-size: 12px;
        min-width: auto;
        flex-shrink: 0;
    }

    .clr-tab-icon {
        font-size: 16px;
        margin-right: 4px;
    }

    .clr-tab-text {
        display: none;
    }

    .clr-tab-btn.active .clr-tab-text {
        display: inline;
    }

    .clr-tab-btn.active::after {
        display: none;
    }

    /* Profile Sections */
    .clr-profile-section {
        padding: 16px;
        margin-bottom: 20px;
    }

    .clr-profile-section h3 {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .clr-profile-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .clr-profile-item {
        gap: 6px;
    }

    .clr-item-label {
        font-size: 11px;
    }

    .clr-item-value {
        font-size: 14px;
    }

    /* Section Headers */
    .clr-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .clr-section-header h3 {
        margin: 0;
        font-size: 16px;
    }

    .clr-section-header .clr-btn {
        width: 100%;
        justify-content: center;
    }

    .clr-orders-count {
        font-size: 13px;
    }

    /* Orders List */
    .clr-orders-list {
        gap: 10px;
    }

    .clr-order-item {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }

    .clr-order-info {
        width: 100%;
        order: 1;
        margin-bottom: 4px;
    }

    .clr-order-number {
        display: block;
        font-size: 15px;
    }

    .clr-order-date {
        font-size: 12px;
        margin-left: 0;
        margin-top: 4px;
        display: block;
    }

    .clr-order-type {
        width: auto;
        order: 2;
        flex: 1;
        min-width: 0;
    }

    .clr-type-badge {
        font-size: 11px;
        padding: 3px 8px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .clr-order-status {
        order: 3;
        width: auto;
    }

    .clr-status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .clr-order-total {
        order: 4;
        width: auto;
        font-size: 14px;
    }

    .clr-order-action {
        order: 5;
        width: 100%;
        margin-top: 8px;
    }

    .clr-order-action .clr-btn {
        width: 100%;
        justify-content: center;
    }

    /* Address Cards */
    .clr-addresses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 16px;
    }

    .clr-address-card {
        padding: 16px;
    }

    .clr-address-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .clr-address-header h4 {
        font-size: 15px;
    }

    .clr-address-content {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 12px;
        min-height: auto;
    }

    /* Quick Actions */
    .clr-profile-quick-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .clr-quick-action {
        padding: 16px;
    }

    .clr-action-icon {
        font-size: 20px;
    }

    .clr-action-text {
        font-size: 13px;
    }

    /* Pagination */
    .clr-pagination {
        gap: 4px;
        margin-top: 24px;
        padding-top: 20px;
        flex-wrap: wrap;
    }

    .clr-pagination-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .clr-pagination-number {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 6px;
    }

    .clr-pagination-numbers {
        gap: 2px;
        flex-wrap: wrap;
    }

    /* Edit Profile */
    .clr-edit-profile-wrapper {
        flex-direction: column;
    }

    .clr-profile-nav {
        width: 100%;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        gap: 8px;
        margin-bottom: 20px;
    }

    .clr-nav-item {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 13px;
    }

    .clr-nav-icon {
        display: none;
    }

    /* Wallet Section */
    .clr-wallet-section {
        padding: 20px 16px;
    }

    .clr-wallet-balance-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .clr-wallet-balance-amount {
        font-size: 28px;
    }

    .clr-wallet-transactions {
        padding: 16px;
    }

    .clr-transaction-item {
        padding: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .clr-transaction-info {
        width: 100%;
        order: 1;
    }

    .clr-transaction-amount {
        order: 2;
        font-size: 16px;
    }

    /* No Data Message */
    .clr-no-data {
        padding: 20px;
        font-size: 14px;
    }

    /* Buttons - Ensure minimum touch target size */
    .clr-btn,
    .clr-btn-sm {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Improve text readability */
    .clr-item-value a {
        word-break: break-word;
    }

    /* Tab Content */
    .clr-profile-tab-content {
        min-height: auto;
    }

    /* Completion Bar */
    .clr-completion-bar {
        height: 6px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .clr-profile-wrapper {
        padding: 0 8px;
    }

    .clr-profile-header {
        padding: 20px 12px;
    }

    .clr-profile-avatar img {
        width: 80px;
        height: 80px;
    }

    .clr-profile-name {
        font-size: 20px;
    }

    .clr-profile-section {
        padding: 12px;
    }

    .clr-tab-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .clr-order-item {
        padding: 10px;
    }

    .clr-address-card {
        padding: 12px;
    }

    .clr-wallet-balance-amount {
        font-size: 24px;
    }
}

/* Tablet Devices */
@media (min-width: 481px) and (max-width: 1024px) {
    .clr-profile-wrapper {
        padding: 0 16px;
    }

    .clr-profile-header {
        padding: 28px 20px;
    }

    .clr-profile-section {
        padding: 20px;
    }

    .clr-profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }

    .clr-addresses-grid {
        grid-template-columns: 1fr;
    }

    .clr-profile-quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .clr-order-item {
        gap: 14px;
    }

    .clr-tab-btn {
        padding: 11px 18px;
        font-size: 13px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .clr-style-modern.clr-dark-mode {
        --clr-text-primary: #fafafa;
        --clr-text-secondary: #d4d4d8;
        --clr-text-muted: #a1a1aa;
        --clr-border: #3f3f46;
        --clr-bg: #18181b;
        --clr-bg-secondary: #27272a;
    }
}

/* Honeypot fields - hidden from users but visible to bots */
.clr-ohnohoney {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 0 !important;
    width: 0 !important;
    z-index: -1 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.clr-ohnohoney input,
.clr-ohnohoney label {
    display: none !important;
    visibility: hidden !important;
}

/* Legacy honeypot classes */
.clr-hp-field,
.clr-hp-field-2 {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Field notes */
.clr-field-note {
    font-size: 12px;
    color: var(--clr-text-muted);
    margin-top: 4px;
}

