/* ===== IFSC CODE FINDER CSS ===== */

.ifsc-wrapper { margin-bottom: 28px; }

/* Tabs */
.ifsc-tabs { display: flex; gap: 0; border-bottom: 2px solid #e5e7eb; }
.ifsc-tab {
    background: none; border: none; padding: 12px 20px;
    cursor: pointer; font-size: 14px; font-weight: 700;
    color: #6b7280; border-bottom: 3px solid transparent;
    transition: all 0.2s; margin-bottom: -2px;
    display: flex; align-items: center; gap: 6px;
}
.ifsc-tab:hover { color: #1d4ed8; }
.ifsc-tab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }

.tab-setup-badge {
    font-size: 9px; font-weight: 800; padding: 2px 6px;
    background: #fef3c7; color: #92400e; border-radius: 10px;
    border: 1px solid #fde68a;
}

/* Grid */
.ifsc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; margin-top: 20px; }

/* Cards */
.ifsc-input-card,
.ifsc-output-card {
    background: #fff; border: 2px solid #e5e7eb;
    border-radius: 20px; padding: 24px;
}
.ifsc-output-card { border-color: #bfdbfe; }
.ifsc-card-title  { font-size: 15px; font-weight: 800; color: #1f2937; margin-bottom: 18px; }

/* Fields */
.ifsc-field  { margin-bottom: 16px; }
.ifsc-label  { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 7px; }
.ifsc-opt    { color: #9ca3af; font-weight: 400; font-size: 11px; }
.ifsc-hint   { font-size: 11px; color: #9ca3af; margin-top: 4px; }

/* Inputs */
.ifsc-input-row { display: flex; gap: 8px; }
.ifsc-input {
    width: 100%; border: 2px solid #e5e7eb; border-radius: 10px;
    padding: 11px 14px; font-size: 15px; outline: none; font-family: inherit;
    transition: border-color 0.2s; box-sizing: border-box;
    color: #1f2937; letter-spacing: 0.5px; font-weight: 600;
}
.ifsc-input:focus { border-color: #2563eb; }
.ifsc-select {
    width: 100%; border: 2px solid #e5e7eb; border-radius: 10px;
    padding: 11px 14px; font-size: 14px; outline: none; font-family: inherit;
    transition: border-color 0.2s; box-sizing: border-box;
    color: #1f2937; background: #fff; cursor: pointer;
}
.ifsc-select:focus { border-color: #2563eb; }

.ifsc-search-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
    border: none; border-radius: 10px; padding: 11px 18px;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s;
    white-space: nowrap; box-shadow: 0 3px 10px rgba(37,99,235,0.3);
}
.ifsc-search-btn:hover { transform: translateY(-1px); }

.ifsc-search-full-btn {
    width: 100%; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
    border: none; border-radius: 12px; padding: 14px;
    font-size: 15px; font-weight: 800; cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.ifsc-search-full-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(37,99,235,0.4); }
.ifsc-search-full-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Bank Chips */
.ifsc-bank-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bank-chip {
    background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 20px;
    padding: 5px 12px; font-size: 12px; font-weight: 700; color: #1d4ed8;
    cursor: pointer; transition: all 0.2s;
}
.bank-chip:hover { background: #2563eb; color: #fff; border-color: #2563eb; transform: translateY(-1px); }

/* Recent */
.ifsc-recent-list { display: flex; flex-wrap: wrap; gap: 6px; }
.recent-chip {
    background: #f8fafc; border: 1.5px solid #e5e7eb; border-radius: 20px;
    padding: 4px 12px; font-size: 12px; font-weight: 600; color: #374151;
    cursor: pointer; transition: all 0.2s; font-family: monospace;
}
.recent-chip:hover { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; }

/* ===== BUILDER ===== */
.ifsc-builder-guide {
    background: #eff6ff; border: 2px solid #bfdbfe;
    border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.builder-guide-title { font-size: 12px; font-weight: 700; color: #1e40af; margin-bottom: 8px; }
.ifsc-anatomy { display: flex; align-items: center; margin-bottom: 4px; }
.anatomy-box { padding: 9px 12px; font-size: 16px; font-weight: 900; font-family: 'Courier New', monospace; }
.anatomy-box:first-child { border-radius: 7px 0 0 7px; }
.anatomy-box:last-child  { border-radius: 0 7px 7px 0; }
.bank-part   { background: #1d4ed8; color: #fff; }
.zero-part   { background: #6b7280; color: #fff; padding: 9px 8px; }
.branch-part { background: #059669; color: #fff; }
.anatomy-labels { display: flex; font-size: 10px; font-weight: 700; margin-top: 4px; }
.al-bank   { flex: 4; color: #1d4ed8; }
.al-zero   { flex: 1; color: #6b7280; }
.al-branch { flex: 6; color: #059669; }

.ifsc-preview-box {
    display: flex; align-items: center; gap: 10px;
    background: #f0fdf4; border: 2px solid #86efac;
    border-radius: 10px; padding: 10px 14px; margin-bottom: 12px;
}
.preview-label { font-size: 12px; font-weight: 700; color: #6b7280; }
.preview-code  {
    font-size: 20px; font-weight: 900; color: #065f46;
    font-family: 'Courier New', monospace; letter-spacing: 2px; flex: 1;
}

.builder-tip {
    background: #fefce8; border: 1.5px solid #fde68a;
    border-radius: 9px; padding: 9px 12px; font-size: 12px;
    color: #78350f; line-height: 1.6; margin-top: 10px;
}

/* ===== CSV SETUP ALERT ===== */
.csv-setup-alert {
    background: #fefce8; border: 2px solid #fde68a;
    border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
    font-size: 13px; color: #78350f; line-height: 1.8;
}
.csv-setup-alert strong { display: block; font-size: 14px; margin-bottom: 6px; color: #92400e; }
.csv-setup-alert ol { padding-left: 18px; margin: 6px 0 0; }
.csv-setup-alert code { background: #fef9c3; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.csv-setup-alert a { color: #1d4ed8; font-weight: 700; }

/* ===== PLACEHOLDER ===== */
.ifsc-placeholder {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 320px; text-align: center; gap: 10px;
}
.iph-icon  { font-size: 54px; }
.iph-title { font-size: 16px; font-weight: 800; color: #374151; }
.iph-sub   { font-size: 13px; color: #9ca3af; margin-bottom: 8px; }
.iph-tips  { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 320px; }
.iph-tip   { background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 10px; padding: 8px 14px; font-size: 12px; color: #1e40af; text-align: left; }

/* Loading */
.ifsc-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; gap: 14px; }
.ifsc-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #bfdbfe; border-top-color: #2563eb; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ifsc-loading-text { font-size: 14px; color: #6b7280; font-weight: 600; }

/* ===== SINGLE RESULT ===== */
.ifsc-result-card {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #93c5fd; border-radius: 16px; padding: 18px;
}
.ifsc-result-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #bfdbfe;
}
.ifsc-bank-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.ifsc-bank-name   { font-size: 17px; font-weight: 900; color: #1e3a8a; margin-bottom: 2px; }
.ifsc-branch-name { font-size: 13px; color: #1d4ed8; font-weight: 600; }

.ifsc-code-display {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 10px; padding: 11px 14px;
    border: 2px solid #93c5fd; margin-bottom: 12px;
}
.ifsc-code-label { font-size: 11px; font-weight: 700; color: #6b7280; }
.ifsc-code-value { font-size: 20px; font-weight: 900; color: #1e3a8a; letter-spacing: 2px; font-family: 'Courier New', monospace; flex: 1; }
.ifsc-copy-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
    border: none; border-radius: 8px; padding: 7px 14px;
    font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.ifsc-copy-btn:hover { transform: translateY(-1px); }

.ifsc-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ifsc-detail-item { background: #fff; border-radius: 9px; padding: 9px 11px; border: 1px solid #bfdbfe; }
.ifsc-detail-label { font-size: 10px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.ifsc-detail-value { font-size: 13px; font-weight: 600; color: #1f2937; line-height: 1.4; }
.ifsc-detail-full  { grid-column: 1 / -1; }

.ifsc-service-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.service-badge { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.badge-yes { background: #dcfce7; color: #166534; border: 1.5px solid #86efac; }
.badge-no  { background: #fee2e2; color: #991b1b; border: 1.5px solid #fca5a5; }

.ifsc-share-row { display: flex; gap: 8px; margin-top: 12px; }
.ifsc-whatsapp-btn,
.ifsc-share-copy-btn {
    flex: 1; padding: 9px; border-radius: 9px; font-size: 12px;
    font-weight: 700; cursor: pointer; transition: all 0.2s; border: 2px solid; text-align: center;
}
.ifsc-whatsapp-btn   { background: #25d366; border-color: #25d366; color: #fff; }
.ifsc-whatsapp-btn:hover { background: #22c55e; }
.ifsc-share-copy-btn { background: #fff; border-color: #bfdbfe; color: #1d4ed8; }
.ifsc-share-copy-btn:hover { background: #eff6ff; }

/* ===== SEARCH RESULTS ===== */
.search-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid #dbeafe; }
.search-results-count { font-size: 13px; font-weight: 800; color: #1e40af; }
.copy-all-ifsc-btn { background: linear-gradient(135deg,#2563eb,#1d4ed8); color: #fff; border: none; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.copy-all-ifsc-btn:hover { transform: translateY(-1px); }

.search-results-list {
    display: flex; flex-direction: column; gap: 7px;
    max-height: 460px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #bfdbfe #fff;
}
.search-results-list::-webkit-scrollbar { width: 4px; }
.search-results-list::-webkit-scrollbar-thumb { background: #bfdbfe; border-radius: 3px; }

.search-result-item {
    background: #fff; border: 2px solid #dbeafe; border-radius: 11px;
    padding: 11px 13px; display: flex; align-items: center; gap: 10px; transition: all 0.2s;
}
.search-result-item:hover { border-color: #2563eb; background: #eff6ff; }
.sri-ifsc    { font-family: 'Courier New', monospace; font-size: 13px; font-weight: 900; color: #1e3a8a; min-width: 115px; }
.sri-info    { flex: 1; }
.sri-branch  { font-size: 13px; font-weight: 700; color: #1f2937; }
.sri-address { font-size: 11px; color: #6b7280; margin-top: 1px; }
.sri-copy    { background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 7px; padding: 5px 10px; font-size: 11px; font-weight: 700; color: #1d4ed8; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.sri-copy:hover { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Error */
.ifsc-error { display: flex; align-items: flex-start; gap: 8px; padding: 16px 18px; background: #fff5f5; border-radius: 12px; color: #dc2626; font-size: 14px; min-height: 60px; }

/* Info Box */
.info-box { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-radius: 16px; padding: 24px; margin-bottom: 24px; border: 2px solid rgba(37,99,235,0.15); }
.info-box h4 { color: #1e3a8a; font-size: 20px; margin-bottom: 14px; }
.info-grid   { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; }
.info-item   { background: #fff; border-radius: 11px; padding: 13px; font-size: 13px; color: #374151; line-height: 1.6; border: 2px solid rgba(37,99,235,0.1); }
.info-item strong { display: block; color: #2563eb; font-size: 13px; font-weight: 700; margin-bottom: 3px; }

/* SEO */
.seo-content { padding: 70px 20px; background: #fff; }
.content-article { max-width: 900px; margin: 0 auto; line-height: 1.8; }
.content-article h2 { font-size: 26px; font-weight: 800; margin-top: 32px; margin-bottom: 14px; color: #333; }
.content-article h2:first-child { margin-top: 0; }
.content-article h3 { font-size: 19px; font-weight: 700; margin-top: 22px; margin-bottom: 10px; color: #444; }
.content-article p  { margin-bottom: 14px; color: #666; font-size: 16px; }
.content-article strong { color: #333; font-weight: 700; }

/* Responsive */
@media (max-width: 900px) { .ifsc-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .ifsc-input-card, .ifsc-output-card { padding: 16px; }
    .ifsc-tabs .ifsc-tab { padding: 10px 12px; font-size: 12px; }
    .ifsc-details-grid { grid-template-columns: 1fr; }
    .ifsc-share-row { flex-direction: column; }
}
