@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=VT323&display=swap');

:root {
    --bg-dark: #041208;
    --bg-panel: radial-gradient(circle at center, rgba(14, 45, 24, 0.80) 0%, rgba(5, 18, 9, 0.90) 100%);
    --border-cyan: rgba(0, 255, 65, 0.6);
    --border-blue: rgba(0, 255, 65, 0.5);
    --accent-cyan: #1aff5a;
    --accent-blue: #00e639;
    --accent-light: #b3ffc2;
    --text-primary: #ffffff;
    --text-muted: #a3e6b5;
    --glow-cyan: 0 0 12px rgba(26, 255, 90, 0.6);
    --glow-blue: 0 0 15px rgba(0, 230, 57, 0.5);
}

body {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 50%, #0d3018 0%, #041208 85%);
    background-attachment: fixed;
    color: var(--text-primary);
    text-shadow: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1, .hero-title {
    color: #fff;
    font-weight: 700;
    font-size: 2.2rem !important;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-cyan);
}

.glass-nav {
    background: rgba(5, 20, 10, 0.85);
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1050;
}

.navbar-dark .navbar-brand {
    color: var(--accent-cyan);
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: none;
}

.navbar-dark .nav-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    transition: 0.3s;
    border-radius: 4px;
}

.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active {
    color: var(--accent-cyan) !important;
    background: rgba(0, 255, 65, 0.05);
    box-shadow: inset 0 -2px 0 var(--accent-cyan);
}

/* Dropdown */
.navbar .dropdown-menu {
    background: rgba(5, 20, 10, 0.95);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
    z-index: 1060;
}
.navbar .dropdown-menu .dropdown-item {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}
.navbar .dropdown-menu .dropdown-item:hover, .navbar .dropdown-menu .dropdown-item.active {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-cyan);
}

/* Cards */
.hero-card, .glass-card, .metric-card {
    background: var(--bg-panel);
    border: 1px solid rgba(0, 255, 65, 0.25);
    border-top: 1px solid rgba(0, 255, 65, 0.5);
    border-radius: 12px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 65, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    position: relative;
    margin-bottom: 2rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateZ(0); /* Hardware Acceleration */
    will-change: transform, box-shadow;
}

.hero-card:hover, .glass-card:hover {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 15px 50px rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 255, 65, 0.5);
}

.hero-card::before, .hero-card::after { display: none; }

/* Buttons */
.btn-primary {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    color: #000;
    border: none;
    border-radius: 3px;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.2);
    transition: 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(90deg, #00ff55, #aaffaa);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    transform: translateY(-2px);
}

.btn-outline-light {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    padding: 0.6rem 1.5rem;
    transition: 0.3s;
}
.btn-outline-light:hover {
    background: rgba(0, 255, 65, 0.1);
    color: #fff;
    box-shadow: var(--glow-cyan);
}

/* Form Controls */
.form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 6px;
    color: #fff !important;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 0.06) !important;
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-label {
    font-size: 1.4rem;
    color: #e2e8f0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

p.text-muted {
    font-size: 1.4rem;
    color: #cbd5e1 !important;
}

/* Tables - Futuristic Data Panel */
.table-glass {
    background: rgba(10, 5, 20, 0.7);
    border: 1px solid var(--border-cyan);
    border-radius: 8px;
    padding: 0;
    overflow-x: auto;
    margin-top: 1.5rem;
    box-shadow: var(--glow-cyan);
}

.table {
    color: var(--text-primary);
    background: transparent;
    border-collapse: collapse;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    margin-bottom: 0;
}

.table th {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0, 255, 65, 0.15);
    color: var(--accent-light);
    border-bottom: 2px solid var(--border-cyan);
    padding: 1rem 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.table td {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.2rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.3);
}

.table tbody tr:hover td {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Feature Cards for Index */
.feature-card {
    background: rgba(5, 20, 10, 0.8);
    border: 1px solid var(--border-blue);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    display: block;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.feature-card:hover {
    background: rgba(5, 30, 15, 0.95);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 255, 65, 0.15);
}

.feature-card .feature-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 200, 50, 0.2);
    color: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feature-card .feature-icon {
    font-size: 1.8rem;
    display: block;
    margin: 0.5rem 0 1rem 0;
    opacity: 0.9;
}

.feature-card .feature-desc {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Misc Utilities */
.status-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
}


.hero-sub {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.highlight-tag {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.3s ease;
}

.highlight-tag:hover {
    border-color: var(--accent-cyan);
}

.highlight-tag svg {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--accent-cyan);
}

.metric-value {
    color: #fff;
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}
.metric-label {
    color: var(--text-muted);
    font-size: 1.4rem;
    font-family: 'VT323', monospace;
}

.section-title {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.alert-soft {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    color: #ff6b6b;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.empty-note {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.badge-soft {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.text-muted-soft {
    color: var(--text-muted);
    font-family: 'VT323', monospace;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-toast {
    position: relative;
    background: rgba(5, 20, 10, 0.95);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(120%);
    opacity: 0;
    width: 320px;
    min-height: 80px;
    max-width: calc(100vw - 48px);
    overflow: hidden;
}

.result-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.result-toast.is-hiding {
    opacity: 0;
    transform: translateX(120%);
}

.result-toast__icon {
    display: none !important;
}

.result-toast__title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    display: block;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.result-toast__close {
    display: none !important;
}

.result-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-cyan);
    width: 100%;
    border-radius: 0 0 8px 8px;
    animation: toastProgress 4.8s linear forwards;
}

@keyframes toastProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.4);
}

/* Holographic Data Cards */
.data-card {
    background: linear-gradient(180deg, rgba(5, 20, 10, 0.95) 0%, rgba(2, 10, 5, 0.8) 100%);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.5;
}

.data-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.15), inset 0 0 20px rgba(0, 255, 65, 0.05);
}

.data-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.data-card-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bg-dark);
    background: var(--accent-cyan);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.data-card-icon {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    opacity: 0.8;
}

.data-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.data-field {
    display: flex;
    flex-direction: column;
}

.data-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: rgba(0, 255, 65, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.data-value {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 500;
    word-break: break-word;
}


/* --- MAGIC CSS OVERRIDES FOR KISI/AILE CARDS --- */
.person-card, .family-card {
    background: linear-gradient(180deg, rgba(5, 20, 10, 0.95) 0%, rgba(2, 10, 5, 0.8) 100%);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.person-card::before, .family-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.5;
}

.person-card:hover, .family-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.15), inset 0 0 20px rgba(0, 255, 65, 0.05);
}

.person-card:hover::before, .family-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.person-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.person-tc {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-dark);
    background: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
    white-space: nowrap;
    display: inline-block;
}

.person-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
    line-height: 1.2;
    word-wrap: break-word;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-chip {
    display: flex;
    flex-direction: column;
    background: rgba(0, 255, 65, 0.03) !important;
    border: 1px solid rgba(0, 255, 65, 0.1) !important;
    border-radius: 6px;
    padding: 0.8rem !important;
    transition: all 0.2s ease;
}

.info-chip:hover {
    background: rgba(0, 255, 65, 0.08) !important;
    border-color: rgba(0, 255, 65, 0.3) !important;
}

.info-chip strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: rgba(0, 255, 65, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    display: block;
}

.info-chip {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 500;
    word-break: break-word;
}


/* Tom Select Retro Styling */
.ts-control, .ts-wrapper.single.input-active .ts-control {
    background: rgba(5, 20, 10, 0.7) !important;
    border: 1px solid rgba(0, 255, 65, 0.3) !important;
    color: #e0f7fa !important;
    border-radius: 0.375rem;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
}
.ts-control input {
    color: #e0f7fa !important;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
}
.ts-dropdown, .ts-dropdown.form-control, .ts-dropdown.form-select {
    background: rgba(5, 20, 10, 0.95) !important;
    border: 1px solid rgba(0, 255, 65, 0.5) !important;
    color: #e0f7fa !important;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    z-index: 9999 !important;
}
.ts-dropdown .option {
    padding: 10px 15px;
}
.ts-dropdown .active {
    background-color: rgba(0, 255, 65, 0.2) !important;
    color: #00ff41 !important;
}
.ts-dropdown .option:hover {
    background-color: rgba(0, 255, 65, 0.3) !important;
    color: #fff !important;
}

/* Copyable CSS Fixes */
.copyable {
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    transition: color 0.2s, text-shadow 0.2s;
}
.copyable:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
}

/* ═══════════════════════════════════════════
   MISSING CLASS DEFINITIONS
   ═══════════════════════════════════════════ */

/* Tree Card (sulale.php) */
.tree-card {
    background: var(--bg-panel);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tree-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.5;
}

/* Timeline (aile.php çocuklar) */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), rgba(0, 255, 65, 0.1));
}

.timeline-item {
    position: relative;
    padding: 1rem 0 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 1.3rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.timeline-item strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #fff;
}

.timeline-item small {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */

/* Body overflow-x engelleme */
html, body {
    overflow-x: hidden;
}

/* ── Navbar Mobil Düzeltmeleri ── */
@media (max-width: 991.98px) {
    body {
        background-attachment: scroll; /* Performance boost for mobile */
    }
    
    .hero-card, .glass-card, .metric-card {
        backdrop-filter: blur(8px); /* Reduces GPU load on mobile */
        -webkit-backdrop-filter: blur(8px);
    }
    .glass-nav {
        padding: 0.6rem 1rem;
    }

    .glass-nav .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-collapse {
        padding-top: 0.8rem;
    }

    .navbar-collapse .navbar-nav {
        gap: 0 !important;
    }

    .navbar-collapse .nav-link {
        font-size: 1.15rem !important;
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid rgba(0, 255, 65, 0.08);
        margin: 0 !important;
    }

    .navbar-collapse .nav-link:last-child {
        border-bottom: none;
    }
}

/* ── Genel Mobil Düzeltmeleri ── */
@media (max-width: 767.98px) {
    h1, .hero-title {
        font-size: 1.4rem !important;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .hero-sub {
        font-size: 1.2rem;
    }

    .hero-card, .glass-card, .metric-card {
        padding: 1.2rem;
    }

    .hero-metrics {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .metric-label {
        font-size: 1.2rem;
    }

    /* Buton grupları sarma */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-group-mobile .btn {
        width: 100%;
    }

    /* Info grid mobilde tek sütun */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Person card */
    .person-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .person-tc {
        font-size: 0.95rem;
    }

    .person-name {
        font-size: 1.2rem;
        word-break: break-word;
    }

    /* Feature card düzeltmeleri */
    .feature-card {
        padding: 1.2rem;
    }

    .feature-badge {
        font-size: 0.85rem !important;
    }

    /* Toast Notification Mobil */
    .toast-container {
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .result-toast {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        margin: 0 auto !important;
    }

    /* Timeline mobil */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 0.8rem;
    }

    /* Tree level mobil */
    .tree-level {
        padding: 1rem !important;
    }

    /* Family card padding */
    .family-card {
        padding: 1rem;
    }
}

/* ── Kimlik Kartı Mobil (kisi_sorgu.php) ── */
@media (max-width: 580px) {
    .id-card-wrapper {
        transform: scale(calc((100vw - 48px) / 540));
        transform-origin: top center;
        height: calc(340px * ((100vw - 48px) / 540));
        margin-bottom: 1rem;
    }
}

@media (max-width: 400px) {
    .id-card-wrapper {
        transform: scale(calc((100vw - 40px) / 540));
        height: calc(340px * ((100vw - 40px) / 540));
    }
}

/* ── Küçük Ekranlar (< 480px) ── */
@media (max-width: 479.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .glass-nav {
        margin-left: 8px !important;
        margin-right: 8px !important;
    }

    h1, .hero-title {
        font-size: 1.2rem !important;
    }

    .highlight-tags {
        gap: 0.5rem;
    }

    .highlight-tag {
        font-size: 1.1rem;
        padding: 0.3rem 0.6rem;
    }

    .btn-primary, .btn-outline-light {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .status-badge {
        font-size: 0.85rem;
    }
}

