/**
 * Zakat Calculator V2 Styles
 * Mobile-first, task-based wizard flow
 */

/* ========================================
   GLOBAL CONTAINER OVERRIDE
   ======================================== */

/* Override parent calculator-container for V2 pages */
.calculator-container:has(.v2-asset-selection),
.calculator-container:has(.v2-wizard-step),
.calculator-container:has(.v2-result-page) {
    max-width: 1200px !important;
}

/* ========================================
   ASSET SELECTION SCREEN
   ======================================== */

.v2-asset-selection {
    max-width: 700px;
    margin: 0 auto;
}

.asset-selection-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.asset-selection-prompt {
    text-align: center;
    margin-bottom: 2rem;
}

/* Asset Tiles */
.asset-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* 4 columns on desktop */
@media (min-width: 768px) {
    .asset-tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

.asset-tile {
    position: relative;
    display: block;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70px;
}

.asset-tile:hover {
    border-color: #14b8a6;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.1);
}

.asset-tile--selected {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.asset-tile__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.asset-tile__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.asset-tile__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.asset-tile__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.asset-tile__description {
    display: none; /* Hide descriptions to make tiles more compact */
}

.asset-tile__check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: #14b8a6;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    transform: scale(0.8);
}

.asset-tile--selected .asset-tile__check {
    opacity: 1;
    transform: scale(1);
}

/* Asset Selection Help */
.asset-selection-help {
    margin: 1.5rem 0;
}

.help-expandable {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
}

.help-expandable__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    color: #0f766e;
    font-size: 0.9375rem;
}

.help-expandable__summary::-webkit-details-marker {
    display: none;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: #14b8a6;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

.help-expandable__content {
    margin-top: 1rem;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.help-expandable__content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.help-expandable__content li {
    margin: 0.25rem 0;
}

/* Selection Count */
.selection-count {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.9375rem;
}

.selection-count__number {
    font-weight: 600;
    color: #14b8a6;
}

/* ========================================
   WIZARD STEP SCREEN
   ======================================== */

.v2-wizard-step {
    max-width: 700px;
    margin: 0 auto;
}

/* Progress Header */
.wizard-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.15s;
}

.btn-back:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-back__icon {
    font-size: 1rem;
}

.progress-indicator {
    text-align: center;
}

.progress-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-spacer {
    width: 100px; /* Match back button width for balance */
}

/* Progress Dots */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.progress-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s;
}

.progress-dot--complete {
    background: #14b8a6;
    width: 0.625rem;
    height: 0.625rem;
}

/* Nisab Bar (Sticky) */
.nisab-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border: 2px solid #14b8a6;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nisab-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 0.75rem;
    align-items: center;
}

.nisab-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nisab-item__label {
    font-size: 0.6875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 500;
}

.nisab-item__value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.nisab-due-box {
    background: #f3f4f6;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
}

.nisab-due-box--due {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: white;
}

.nisab-due-box--no {
    background: #f3f4f6;
    color: #6b7280;
}

.nisab-due-box__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.nisab-due-box__value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
}

.nisab-bar__message {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    color: #0f766e;
    text-align: center;
}

.nisab-bar__message--muted {
    color: #6b7280;
}

/* Step Card */
.wizard-step-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .wizard-step-card {
        padding: 1.75rem;
    }
}

.step-header {
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.375rem 0;
}

.step-description {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

/* Question Groups */
.step-questions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.question-group {
    position: relative;
}

.question-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.question-optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.8125rem;
    margin-left: 0.25rem;
}

.required-marker {
    color: #ef4444;
    margin-left: 0.25rem;
}

.question-help-text {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.125rem 0 0.375rem 0;
}

/* Input Styling */
.input-with-prefix,
.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
}

.input-with-prefix .form-input {
    padding-left: 2rem;
}

.input-suffix {
    position: absolute;
    right: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    pointer-events: none;
}

.input-with-suffix .form-input {
    padding-right: 4rem;
}

.input-number {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

.input-error {
    border-color: #ef4444 !important;
    background: #fef2f2;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    justify-content: center;
}

.radio-label:hover {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.radio-label input[type="radio"]:checked + .radio-text {
    font-weight: 600;
    color: #0f766e;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #14b8a6;
    background: #f0fdfa;
}

/* Question Help Expandable */
.question-help {
    margin-top: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.question-help__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.875rem;
    color: #0f766e;
    font-weight: 500;
}

.question-help__summary::-webkit-details-marker {
    display: none;
}

.question-help__content {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
}

.help-articles {
    margin-top: 0.75rem;
}

.help-articles ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.help-article-link {
    color: #14b8a6;
    text-decoration: none;
}

.help-article-link:hover {
    text-decoration: underline;
}

/* Section Total */
.section-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.section-total__label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.section-total__amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

/* Wizard Footer (Sticky) */
.wizard-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 0.875rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.btn-full-width {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    font-size: 1rem;
}

/* ========================================
   RESULTS SCREEN
   ======================================== */

.v2-result-page {
    max-width: 700px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.result-card--primary {
    border: 2px solid #14b8a6;
}

.result-card--secondary {
    background: #f9fafb;
}

.result-card--info {
    background: #f0fdfa;
    border-color: #99f6e4;
}

/* Result Summary */
.result-summary {
    margin-bottom: 1.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.result-row--highlight {
    background: #f0fdfa;
    margin: 0.5rem -1rem;
    padding: 1rem;
    border-radius: 0.375rem;
}

.result-row--muted {
    color: #6b7280;
    font-size: 0.9375rem;
}

.result-label {
    font-weight: 500;
}

.result-value {
    font-weight: 600;
    font-size: 1.125rem;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

.result-value--large {
    font-size: 1.5rem;
    color: #0f766e;
}

.result-value--negative {
    color: #dc2626;
}

.result-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}

.result-divider--thick {
    height: 2px;
    background: #14b8a6;
    margin: 1.5rem 0;
}

/* Zakat Due Section - COMPACT VERSION */
.result-card--compact {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.result-summary-compact {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.result-row-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.result-label-sm {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.result-value-sm {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

.zakat-due-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
}

.zakat-due-label-sm {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.95;
}

.zakat-due-amount-sm {
    font-size: 1.75rem;
    font-weight: 700;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

/* Old Zakat Due Section (keep for backwards compatibility) */
.zakat-due-section {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    border-radius: 0.5rem;
    color: white;
}

.zakat-due-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.zakat-due-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

.zakat-due-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge--success {
    background: #d1fae5;
    color: #065f46;
}

.status-badge--neutral {
    background: #f3f4f6;
    color: #6b7280;
}

/* Breakdown */
.breakdown-expandable {
    border: none;
}

.breakdown-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
    padding: 0.5rem 0;
}

.breakdown-summary::-webkit-details-marker {
    display: none;
}

.breakdown-icon {
    transition: transform 0.2s;
}

details[open] .breakdown-icon {
    transform: rotate(0deg);
}

details:not([open]) .breakdown-icon {
    transform: rotate(-90deg);
}

.breakdown-content {
    margin-top: 1rem;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
}

.breakdown-table th,
.breakdown-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.breakdown-table th {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.breakdown-table tbody tr:last-child td {
    border-bottom: none;
}

.breakdown-table tfoot tr {
    border-top: 2px solid #14b8a6;
}

.breakdown-table tfoot td {
    padding-top: 1rem;
    border-bottom: none;
}

.text-right {
    text-align: right;
}

.text-negative {
    color: #dc2626;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.result-actions .btn {
    flex: 1;
}

/* Asset Tags */
.asset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.asset-tag {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Next Steps */
.next-steps-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.next-steps-list li {
    margin: 0.75rem 0;
    line-height: 1.6;
}

/* ========================================
   PAYMENT SECTION - ORGANISATIONS
   ======================================== */

/* Payment Hero Section - COMPACT VERSION */
.payment-hero-compact {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    text-align: center;
    margin: 0.75rem 0 1rem 0;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.payment-hero__title-sm {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.payment-hero__subtitle-sm {
    font-size: 0.875rem;
    color: white;
    opacity: 0.9;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.payment-trust-badges-compact {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Payment Hero Section - ORIGINAL (keep for backwards compatibility) */
.payment-hero {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.25);
    border: 3px solid #0f766e;
}

.payment-hero__title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.payment-hero__message {
    font-size: 1.125rem;
    color: white;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    opacity: 0.95;
}

.payment-hero__message strong {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    display: inline-block;
    margin: 0 0.25rem;
}

/* Trust Badges */
.payment-trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.payment-section-compact {
    margin: 0 0 1.5rem 0;
}

.payment-section {
    margin: 0 0 2rem 0;
}

.payment-section__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.payment-section__subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    text-align: center;
    margin: 0 0 2rem 0;
}

.org-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
}

@media (min-width: 640px) {
    .org-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .org-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.org-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.org-card:hover {
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.15);
    border-color: #14b8a6;
    transform: translateY(-2px);
}

.org-logo-container {
    width: 60px;
    height: 60px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.org-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.org-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.org-description {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    flex-grow: 1;
    display: none;
}

.org-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.org-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.org-btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: white;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.2);
}

.org-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.org-btn-secondary {
    background: white;
    color: #0f766e;
    border: 2px solid #14b8a6;
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
}

.org-btn-secondary:hover {
    background: #f0fdfa;
}

.org-link-alt {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: inline-block;
}

.org-link-alt:hover {
    color: #14b8a6;
    text-decoration: underline;
}

.org-link {
    color: #14b8a6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: inline-block;
}

.org-link:hover {
    text-decoration: underline;
}

/* ========================================
   SAVE CALCULATION PROMPT - Non-Authenticated Users
   ======================================== */

.save-calculation-prompt {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.save-prompt-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.save-prompt-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 0.75rem 0;
}

.save-prompt-message {
    font-size: 1rem;
    color: #78350f;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.save-prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-save-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
}

.btn-save-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.btn-save-secondary {
    background: white;
    color: #d97706;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f59e0b;
    transition: all 0.2s ease;
}

.btn-save-secondary:hover {
    background: #fffbeb;
    border-color: #d97706;
}

.save-prompt-benefits {
    font-size: 0.875rem;
    color: #92400e;
    margin: 0;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 640px) {
    .save-calculation-prompt {
        padding: 1.5rem 1.25rem;
    }

    .save-prompt-icon {
        font-size: 2.5rem;
    }

    .save-prompt-title {
        font-size: 1.25rem;
    }

    .save-prompt-message {
        font-size: 0.9375rem;
    }

    .save-prompt-actions {
        flex-direction: column;
    }

    .btn-save-primary,
    .btn-save-secondary {
        width: 100%;
    }

    .save-prompt-benefits {
        font-size: 0.8125rem;
    }
}

/* ========================================
   EXIT INTENT MODAL - Capture Abandoning Users
   ======================================== */

.exit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.exit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.exit-modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    text-align: center;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exit-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #9ca3af;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.exit-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.exit-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.exit-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.exit-modal-message {
    font-size: 1.125rem;
    color: #4b5563;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.exit-modal-message strong {
    color: #14b8a6;
    font-weight: 700;
    font-size: 1.25rem;
}

.exit-modal-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.exit-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f0fdfa;
    border-radius: 0.5rem;
    border: 1px solid #99f6e4;
}

.exit-benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.exit-benefit-text {
    font-size: 0.9375rem;
    color: #1f2937;
    font-weight: 500;
}

.exit-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.exit-btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
    transition: all 0.2s ease;
    border: none;
    width: 100%;
}

.exit-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.exit-btn-secondary {
    background: transparent;
    color: #6b7280;
    padding: 0.75rem 2rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.exit-btn-secondary:hover {
    color: #1f2937;
}

.exit-modal-footer {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
}

/* Mobile Optimization */
@media (max-width: 640px) {
    .exit-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .exit-modal-icon {
        font-size: 3rem;
    }

    .exit-modal-title {
        font-size: 1.5rem;
    }

    .exit-modal-message {
        font-size: 1rem;
    }

    .exit-benefit {
        padding: 0.625rem;
    }

    .exit-benefit-icon {
        font-size: 1.25rem;
    }

    .exit-benefit-text {
        font-size: 0.875rem;
    }

    .exit-btn-primary {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* ========================================
   RESULT FOOTER - Small Actions
   ======================================== */

.result-footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.result-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.footer-link:hover {
    color: #14b8a6;
    text-decoration: underline;
}

.footer-separator {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* ========================================
   VERSION NOTE
   ======================================== */

.version-note {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.version-link {
    color: #14b8a6;
    text-decoration: none;
}

.version-link:hover {
    text-decoration: underline;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 640px) {
    .nisab-bar {
        padding: 0.625rem 0.875rem;
    }

    .nisab-bar__inner {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .nisab-due-box {
        grid-column: 1 / -1;
    }

    .nisab-bar__message {
        font-size: 0.75rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .wizard-progress-header {
        flex-wrap: wrap;
    }

    .progress-spacer {
        display: none;
    }

    .wizard-step-card {
        padding: 1.25rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .btn-back__text {
        display: none;
    }

    .zakat-due-amount {
        font-size: 2rem;
    }

    .payment-hero {
        padding: 1.75rem 1.25rem;
    }

    .payment-hero__title {
        font-size: 1.5rem;
    }

    .payment-hero__message {
        font-size: 1rem;
    }

    .payment-hero__message strong {
        font-size: 1.125rem;
    }

    .payment-trust-badges {
        gap: 0.75rem;
    }

    .trust-badge {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .payment-hero-compact {
        padding: 0.875rem 1rem;
        margin: 0.5rem 0 0.75rem 0;
    }

    .payment-hero__title-sm {
        font-size: 1.125rem;
    }

    .payment-hero__subtitle-sm {
        font-size: 0.8125rem;
    }

    .trust-badge-sm {
        font-size: 0.75rem;
        padding: 0.3125rem 0.75rem;
    }

    .result-card--compact {
        padding: 1rem 1.25rem;
    }

    .result-summary-compact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .result-row-compact {
        flex-direction: row;
        justify-content: space-between;
    }

    .zakat-due-compact {
        padding: 0.875rem 1.25rem;
    }

    .zakat-due-amount-sm {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-card,
    .wizard-step-card,
    .result-card {
        padding: 1.5rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .zakat-due-amount {
        font-size: 1.75rem;
    }
}
