/* ===== KUNDALI GENERATOR CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&display=swap');

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

/* ---- FORM ---- */
.kund-form-card {
    background: linear-gradient(135deg, #1a0533, #2d1155, #1a0533);
    border-radius: 24px; padding: 36px; margin-bottom: 24px;
    box-shadow: 0 8px 40px rgba(124,58,237,0.4);
    border: 1px solid rgba(196,181,253,0.2);
}
.kund-form-title {
    font-size: 22px; font-weight: 900; color: #e9d5ff;
    text-align: center; margin-bottom: 28px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}
.kund-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.kund-full { grid-column: 1 / -1; }

.kund-field  {}
.kund-label  { display: block; font-size: 13px; font-weight: 700; color: #c4b5fd; margin-bottom: 8px; }
.kund-required { color: #f87171; }
.kund-optional { color: #9ca3af; font-weight: 400; font-size: 11px; }

.kund-input {
    width: 100%; border: 2px solid rgba(196,181,253,0.3); border-radius: 12px;
    padding: 12px 16px; font-size: 15px; outline: none;
    background: rgba(255,255,255,0.08); color: #fff; font-family: inherit;
    transition: all 0.25s; box-sizing: border-box;
}
.kund-input::placeholder { color: rgba(196,181,253,0.4); }
.kund-input:focus { border-color: #a78bfa; background: rgba(255,255,255,0.12); box-shadow: 0 0 0 3px rgba(167,139,250,0.2); }
.kund-input[type="date"]::-webkit-calendar-picker-indicator,
.kund-input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; cursor: pointer; }
.kund-hint { font-size: 11px; color: rgba(196,181,253,0.5); margin-top: 4px; }

.kund-generate-btn {
    width: 100%; background: linear-gradient(135deg, #7c3aed, #a855f7, #7c3aed);
    color: #fff; border: none; border-radius: 16px; padding: 18px;
    font-size: 18px; font-weight: 900; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(124,58,237,0.5);
    letter-spacing: 0.5px; background-size: 200%;
}
.kund-generate-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(124,58,237,0.6); background-position: right; }
.kund-generate-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.kund-privacy-note { text-align: center; font-size: 12px; color: rgba(196,181,253,0.5); margin-top: 12px; }

/* ---- LOADING ---- */
.kund-loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 60px 20px; gap: 20px;
    background: linear-gradient(135deg, #1a0533, #2d1155);
    border-radius: 24px; margin-bottom: 24px;
}
.kund-loading-planets { display: flex; gap: 14px; font-size: 32px; animation: kund-float 2s ease-in-out infinite; }
@keyframes kund-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.kund-loading-title { font-size: 20px; font-weight: 800; color: #e9d5ff; font-family: 'Playfair Display', serif; }
.kund-loading-steps { display: flex; flex-direction: column; gap: 10px; }
.kund-step { font-size: 14px; color: rgba(196,181,253,0.4); padding: 8px 18px; border-radius: 20px; transition: all 0.4s; }
.kund-step.active { color: #c4b5fd; background: rgba(124,58,237,0.3); }

/* ---- ERROR ---- */
.kund-error { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px; background: #fff5f5; border-radius: 20px; text-align: center; color: #dc2626; font-size: 15px; margin-bottom: 20px; }
.kund-retry-btn { background: #7c3aed; color: #fff; border: none; border-radius: 10px; padding: 10px 24px; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ---- RESULT ---- */
/* Data Banner */
.kund-data-banner { border-radius: 12px; padding: 12px 18px; font-size: 13px; margin-bottom: 20px; }
.kund-banner-real { background: #f0fdf4; border: 2px solid #86efac; color: #15803d; }
.kund-banner-ai   { background: #fffbeb; border: 2px solid #fde68a; color: #92400e; }

/* Profile Card */
.kund-profile-card {
    background: linear-gradient(135deg, #1a0533, #2d1155);
    border-radius: 20px; padding: 24px 28px;
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 20px; box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.kund-profile-avatar { font-size: 52px; flex-shrink: 0; }
.kund-profile-info   { flex: 1; }
.kund-profile-name   { font-size: 22px; font-weight: 900; color: #e9d5ff; font-family: 'Playfair Display', serif; margin-bottom: 6px; }
.kund-profile-details { font-size: 13px; color: #c4b5fd; line-height: 1.7; }
.kund-reset-btn { background: rgba(255,255,255,0.1); border: 2px solid rgba(196,181,253,0.3); border-radius: 10px; padding: 10px 18px; color: #c4b5fd; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; }
.kund-reset-btn:hover { background: rgba(255,255,255,0.2); }

/* Basic Row */
.kund-basic-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.kund-basic-card {
    background: #fff; border: 2px solid #ede9fe; border-radius: 16px;
    padding: 18px 12px; text-align: center; transition: all 0.2s;
}
.kund-basic-card:hover { border-color: #7c3aed; transform: translateY(-2px); }
.kund-basic-icon  { font-size: 28px; margin-bottom: 6px; }
.kund-basic-label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.kund-basic-value { font-size: 16px; font-weight: 900; color: #1f2937; }

/* Section */
.kund-section { background: #fff; border: 2px solid #e5e7eb; border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.kund-section-title { font-size: 17px; font-weight: 800; color: #1f2937; margin-bottom: 16px; font-family: 'Playfair Display', serif; }

/* Dasha */
.kund-dasha-card { background: linear-gradient(135deg,#faf5ff,#ede9fe); border-radius: 14px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border: 2px solid #ddd6fe; }
.kund-dasha-main { display: flex; align-items: center; gap: 12px; }
.kund-dasha-label { font-size: 13px; font-weight: 700; color: #6b7280; }
.kund-dasha-val   { font-size: 22px; font-weight: 900; color: #7c3aed; }
.kund-dasha-ends  { font-size: 13px; color: #9ca3af; font-weight: 600; }

/* Planets Table */
.kund-planets-table-wrap { overflow-x: auto; }
.kund-planets-table { width: 100%; border-collapse: collapse; }
.kund-planets-table th { background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 700; text-align: left; }
.kund-planets-table th:first-child { border-radius: 10px 0 0 0; }
.kund-planets-table th:last-child  { border-radius: 0 10px 0 0; }
.kund-planets-table td { padding: 10px 14px; font-size: 14px; color: #374151; border-bottom: 1px solid #f3f4f6; }
.kund-planets-table tr:hover td { background: #faf5ff; }
.kund-planet-emoji { font-size: 16px; }
.kund-retro   { background: #fff5f5; color: #dc2626; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.kund-direct  { background: #f0fdf4; color: #15803d; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* Predictions */
.kund-predictions { margin-bottom: 20px; }
.kund-pred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kund-pred-card { border-radius: 18px; padding: 22px; border: 2px solid; }
.kund-career { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-color: #93c5fd; }
.kund-love   { background: linear-gradient(135deg,#fff5f5,#fee2e2); border-color: #fca5a5; }
.kund-health { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #86efac; }
.kund-finance{ background: linear-gradient(135deg,#fffbeb,#fef3c7); border-color: #fde68a; }
.kund-pred-icon  { font-size: 32px; margin-bottom: 8px; }
.kund-pred-title { font-size: 15px; font-weight: 800; color: #1f2937; margin-bottom: 10px; }
.kund-pred-text  { font-size: 13px; color: #374151; line-height: 1.7; }

/* Bottom Row */
.kund-bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.kund-lucky-card, .kund-matching-card { background: #fff; border: 2px solid #e5e7eb; border-radius: 20px; padding: 22px; }
.kund-lucky-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kund-lucky-item { background: linear-gradient(135deg,#faf5ff,#ede9fe); border-radius: 12px; padding: 14px 10px; text-align: center; border: 2px solid #ddd6fe; font-size: 22px; display: flex; flex-direction: column; gap: 4px; }
.kund-lucky-item span  { font-size: 11px; color: #9ca3af; font-weight: 700; }
.kund-lucky-item strong { font-size: 14px; color: #1f2937; }
.kund-matching-text { font-size: 14px; color: #374151; line-height: 1.7; margin-bottom: 14px; }
.kund-matching-cta  { background: #fffbeb; border: 2px solid #fde68a; border-radius: 10px; padding: 10px 14px; font-size: 12px; color: #92400e; }

/* Disclaimer */
.kund-disclaimer { background: #f8fafc; border: 2px solid #e5e7eb; border-radius: 12px; padding: 14px 18px; font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 16px; }

/* Actions */
.kund-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.kund-action-btn { flex: 1; background: #fff; border: 2px solid #7c3aed; color: #7c3aed; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 800; cursor: pointer; transition: all 0.2s; }
.kund-action-btn:hover { background: #7c3aed; color: #fff; }
.kund-action-share { border-color: #10b981; color: #10b981; }
.kund-action-share:hover { background: #10b981; color: #fff; }

/* Print */
@media print {
    .tool-header, .kund-form-card, .kund-actions, .kund-reset-btn, header, footer, .breadcrumb, .related-tools { display: none !important; }
    .kund-profile-card { background: #f0f0f0 !important; color: #000 !important; }
}

/* Responsive */
@media (max-width: 900px) {
    .kund-basic-row   { grid-template-columns: repeat(2,1fr); }
    .kund-pred-grid   { grid-template-columns: 1fr; }
    .kund-bottom-row  { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .kund-form-grid   { grid-template-columns: 1fr; }
    .kund-basic-row   { grid-template-columns: repeat(2,1fr); }
    .kund-profile-card { flex-direction: column; text-align: center; }
    .kund-actions     { flex-direction: column; }
}

/* ===== LANGUAGE TOGGLE ===== */
.kund-lang-toggle {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(196,181,253,0.25);
    border-radius: 14px; padding: 14px 18px;
    margin-bottom: 18px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.kund-lang-label {
    font-size: 13px; font-weight: 700; color: #c4b5fd;
}
.kund-lang-btns { display: flex; gap: 8px; }
.kund-lang-btn {
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(196,181,253,0.25);
    border-radius: 10px; padding: 9px 22px;
    font-size: 14px; font-weight: 800; color: #c4b5fd;
    cursor: pointer; transition: all 0.25s;
}
.kund-lang-btn:hover { border-color: #a78bfa; color: #e9d5ff; }
.kund-lang-btn.active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: #a855f7; color: #fff;
    box-shadow: 0 4px 14px rgba(124,58,237,0.45);
}

/* Lucky grid 3 cols for dhatu + god */
.kund-lucky-grid { grid-template-columns: repeat(3, 1fr) !important; }