 *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --text: #1a1a2e;
            --text-secondary: #555e6d;
            --text-muted: #8a919c;
            --bg: #fafafa;
            --bg-warm: #f6f5f2;
            --white: #ffffff;
            --border: #e8e8ea;
            --border-light: #f0f0f2;
            --accent: #2d4a7a;
            --accent-light: #3b6cb0;
            --accent-bg: #eef3fa;
            --warm: #c9944a;
            --warm-bg: #fdf6ec;
            --serif: 'DM Serif Display', Georgia, serif;
            --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            --shadow-subtle: 0 1px 3px rgba(0,0,0,0.04);
            --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
            --shadow-lift: 0 8px 24px rgba(0,0,0,0.08);
            --radius: 10px;
            --radius-lg: 16px;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--sans);
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        a { color: inherit; text-decoration: none; }

        .container {
            width: 100%;
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ── HEADER (same as home.html) ─────────────────────────────────────── */
        .header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            box-shadow: 0 1px 12px rgba(0,0,0,0.06);
        }
        .header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 66px;
        }
        .logo { display: flex; align-items: center; gap: 12px; }
        .logo-mark {
            width: 42px; height: 42px;
            background: var(--accent);
            border-radius: 10px;
            display: grid;
            place-items: center;
            color: #fff;
            font-family: var(--serif);
            font-size: 1.1rem;
            flex-shrink: 0;
        }
        .logo-text strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.2; }
        .logo-text small { font-size: 0.68rem; color: var(--text-muted); }
        .back-link { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
        .back-link:hover { color: var(--accent); }

        /* ── HERO SEARCH SECTION ─────────────────────────────────────────────── */
        .search-hero {
            background: var(--accent);
            padding: 64px 0 80px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .search-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
            pointer-events: none;
        }
        .search-hero h1 {
            font-family: var(--serif);
            font-size: 2.8rem;
            color: #fff;
            margin-bottom: 12px;
        }
        .search-hero p {
            color: rgba(255,255,255,0.75);
            font-size: 1rem;
            margin-bottom: 36px;
        }

        /* Search Bar */
        .search-form {
            display: flex;
            gap: 0;
            max-width: 540px;
            margin: 0 auto;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow-lift);
        }
        .search-input {
            flex: 1;
            padding: 16px 20px;
            font-family: var(--sans);
            font-size: 1rem;
            border: none;
            outline: none;
            color: var(--text);
            letter-spacing: 1px;
        }
        .search-input::placeholder { color: var(--text-muted); letter-spacing: 0; }
        .search-btn {
            padding: 16px 28px;
            background: var(--warm);
            color: #fff;
            font-family: var(--sans);
            font-size: 0.9rem;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: background 0.2s;
            white-space: nowrap;
        }
        .search-btn:hover { background: #b5823d; }

        /* ── MAIN CONTENT ────────────────────────────────────────────────────── */
        .main-content {
            flex: 1;
            padding: 60px 0;
        }

        /* ── ERROR MESSAGE ────────────────────────────────────────────────────── */
        .alert-error {
            background: #fef2f2;
            border: 1px solid #fca5a5;
            border-left: 4px solid #ef4444;
            border-radius: var(--radius);
            padding: 18px 24px;
            max-width: 600px;
            margin: 0 auto 40px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.95rem;
            color: #991b1b;
        }

        /* ── STUDENT PROFILE CARD ─────────────────────────────────────────────── */
        .profile-wrap {
            max-width: 900px;
            margin: 0 auto;
            animation: fadeUp 0.5s ease both;
        }
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Top banner */
        .profile-banner {
            background: var(--accent);
            border-radius: var(--radius-lg) var(--radius-lg) 0 0;
            padding: 32px 36px;
            display: flex;
            align-items: center;
            gap: 24px;
        }
        .avatar {
            width: 72px; height: 72px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: grid;
            place-items: center;
            flex-shrink: 0;
            font-family: var(--serif);
            font-size: 1.8rem;
            color: #fff;
        }
        .profile-banner-info h2 {
            font-family: var(--serif);
            font-size: 1.7rem;
            color: #fff;
            margin-bottom: 4px;
        }
        .roll-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.9);
            padding: 4px 14px;
            border-radius: 50px;
            font-size: 0.82rem;
            font-weight: 600;
            letter-spacing: 1px;
        }
        .branch-tag {
            display: inline-block;
            margin-left: 8px;
            background: var(--warm);
            color: #fff;
            padding: 3px 12px;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        /* Detail sections */
        .detail-sections {
            background: var(--white);
            border: 1px solid var(--border);
            border-top: none;
            border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        }
        .detail-section {
            padding: 28px 36px;
            border-bottom: 1px solid var(--border-light);
        }
        .detail-section:last-child { border-bottom: none; }
        .section-label {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--accent);
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .section-label::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border-light);
        }

        .details-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 18px 32px;
        }
        .detail-item {}
        .detail-item .key {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 4px;
        }
        .detail-item .val {
            font-size: 0.95rem;
            color: var(--text);
            font-weight: 500;
        }

        /* ── EMPTY STATE (when no search yet) ──────────────────────────────────── */
        .empty-state {
            text-align: center;
            max-width: 480px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        .empty-icon {
            width: 80px; height: 80px;
            background: var(--accent-bg);
            border-radius: 50%;
            display: grid;
            place-items: center;
            margin: 0 auto 24px;
        }
        .empty-icon svg { width: 36px; height: 36px; color: var(--accent); }
        .empty-state h2 {
            font-family: var(--serif);
            font-size: 1.8rem;
            margin-bottom: 12px;
        }
        .empty-state p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

        /* ── FOOTER (same as home.html) ──────────────────────────────────────── */
        .footer {
            background: var(--text);
            color: rgba(255,255,255,0.55);
            padding: 60px 0 0;
            font-size: 0.85rem;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
            gap: 40px;
            padding-bottom: 40px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .footer h4 { color: #fff; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
        .footer-about p { line-height: 1.7; margin-bottom: 18px; }
        .footer-social { display: flex; gap: 8px; }
        .footer-social a {
            width: 34px; height: 34px;
            border-radius: 8px;
            background: rgba(255,255,255,0.06);
            display: grid; place-items: center;
            transition: background 0.2s, transform 0.2s;
        }
        .footer-social a:hover { background: var(--accent); transform: translateY(-2px); }
        .footer-social a svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }
        .footer ul { list-style: none; }
        .footer ul li { margin-bottom: 8px; }
        .footer ul a { color: rgba(255,255,255,0.55); transition: color 0.2s, padding-left 0.2s; }
        .footer ul a:hover { color: #fff; padding-left: 4px; }
        .footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
        .footer-contact-item svg {
            width: 18px; height: 18px; fill: none; stroke: currentColor;
            stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
            flex-shrink: 0; margin-top: 2px;
        }
        .footer-bottom { padding: 24px 0; text-align: center; font-size: 0.8rem; }

        @media (max-width: 680px) {
            .search-hero h1 { font-size: 2rem; }
            .search-form { flex-direction: column; border-radius: var(--radius); }
            .search-input { border-radius: var(--radius) var(--radius) 0 0; }
            .search-btn { border-radius: 0 0 var(--radius) var(--radius); }
            .profile-banner { flex-direction: column; text-align: center; }
            .detail-section { padding: 20px 20px; }
            .footer-grid { grid-template-columns: 1fr; gap: 32px; }
        }