/**
 * Sword Bilisim - Professional Modern Redesign
 * Clean, minimal, elegant
 */

:root {
    --primary: #0052cc;
    --primary-light: #0066ff;
    --accent: #00a8d8;
    --dark: #0a0f1f;
    --surface: #111629;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(0, 82, 204, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--text-light);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.site-shell { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 31, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark-logo {
    width: 52px;
    height: auto;
    flex: 0 0 auto;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.brand-stack strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f1f5f9;
    text-shadow: 0 0 22px rgba(0, 102, 255, 0.12);
}

.brand-stack small {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--accent);
    text-transform: uppercase;
}

.topbar-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav { display: flex; gap: 32px; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 14px; transition: color 300ms; }
.nav a:hover { color: var(--accent); }

.button {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 300ms;
}

.button-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; box-shadow: 0 8px 20px rgba(0, 82, 204, 0.25); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 82, 204, 0.35); }

.button-secondary { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); transition: all 300ms; }
.button-secondary:hover { background: rgba(0, 168, 216, 0.1); }

.button-ghost {
    background: rgba(17, 22, 41, 0.72);
    color: var(--text-light);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.button-ghost:hover {
    background: rgba(17, 22, 41, 0.92);
    border-color: rgba(0, 168, 216, 0.45);
}

.modern-button {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.24);
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(6, 182, 212, 0.32);
}

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 8px 14px 8px 8px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 999px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 300ms ease;
}

.user-profile-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.42);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(139, 92, 246, 0.18));
}

.user-profile-btn img,
.user-menu-header img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.user-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.user-profile-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-name {
    font-size: 14px;
    font-weight: 700;
}

.user-profile-arrow {
    font-size: 11px;
    color: var(--text-muted);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(20, 28, 54, 0.98));
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
    display: none;
    z-index: 1200;
}

.user-menu-dropdown.active,
.user-menu-dropdown.open {
    display: block;
}

.user-profile-btn.active {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.18);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-menu-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
}

.user-menu-id {
    color: var(--text-muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.14);
    margin: 12px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: rgba(241, 245, 249, 0.84);
    text-decoration: none;
    transition: all 250ms ease;
}

.user-menu-item:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.admin-link {
    color: #c4b5fd;
}

.admin-link:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #ddd6fe;
}

.user-menu-logout {
    color: #fca5a5;
}

.user-menu-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.hero {
    padding: 84px 32px 48px;
    text-align: center;
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-copy {
    width: min(100%, 820px);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin: 12px 0;
    color: var(--text-light);
}

.hero-text { font-size: 18px; color: var(--text-muted); line-height: 1.8; max-width: 600px; margin: 12px auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 20px;
    list-style: none;
}

.stats li {
    background: rgba(0, 82, 204, 0.08);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    transition: all 300ms;
}

.stats li:hover {
    border-color: var(--primary);
    background: rgba(0, 82, 204, 0.15);
    transform: translateY(-4px);
}

.stats strong { color: var(--accent); font-size: 16px; margin-bottom: 8px; display: block; font-weight: 700; }
.stats span { color: var(--text-muted); font-size: 14px; font-weight: 500; }

.section { padding: 80px 32px; max-width: 1200px; margin: 0 auto; width: 100%; }
.section-heading { margin-bottom: 60px; }
.section-heading h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 16px; color: var(--text-light); }
.section-heading p { font-size: 18px; color: var(--text-muted); line-height: 1.8; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(17, 22, 41, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.feature-card span { font-size: 40px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 12px; letter-spacing: -0.5px; }
.feature-card p { color: var(--text-muted); line-height: 1.7; font-size: 15px; }

.feature-card:hover {
    border-color: var(--primary);
    background: rgba(0, 82, 204, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 82, 204, 0.2);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-card {
    background: rgba(17, 22, 41, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 400ms;
}

.about-card h3 { font-size: 22px; font-weight: 800; color: var(--primary-light); margin-bottom: 16px; letter-spacing: -0.5px; }
.about-card p { color: var(--text-muted); line-height: 1.8; font-size: 16px; }

.about-card:hover {
    border-color: var(--accent);
    background: rgba(0, 168, 216, 0.08);
    transform: translateY(-4px);
}

.approach-card {
    background: rgba(17, 22, 41, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
    transition: all 300ms ease;
}

.approach-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 14px;
}

.approach-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 15px;
}

.approach-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    background: rgba(0, 82, 204, 0.08);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.principle-card {
    background: rgba(17, 22, 41, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: all 300ms;
}

.principle-card h3 { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.principle-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.principle-card:hover {
    border-color: var(--primary);
    background: rgba(0, 82, 204, 0.08);
    transform: translateY(-2px);
}

.timeline {
    background: rgba(17, 22, 41, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px 30px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 60px;
    top: 38px;
    bottom: 38px;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.95), rgba(0, 102, 255, 0.35));
    opacity: 0.9;
}

.timeline-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 28px;
    align-items: center;
    min-height: 78px;
    padding: 0;
    position: relative;
}

.timeline-item + .timeline-item {
    margin-top: 14px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid rgba(10, 15, 31, 0.95);
    box-shadow: 0 0 0 6px rgba(0, 82, 204, 0.1);
}

.timeline-item > strong {
    color: var(--primary-light);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: left;
    width: 100%;
    display: block;
}

.timeline-item p strong {
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
}

.timeline-item p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.auth-card {
    background: rgba(17, 22, 41, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 300ms;
}

.auth-card h3 { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.auth-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.auth-card:hover {
    border-color: var(--primary);
    background: rgba(0, 82, 204, 0.1);
    transform: translateY(-4px);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.add-project-card {
    margin-top: 24px;
    min-height: 164px;
    border: 2px dashed rgba(6, 182, 212, 0.35);
    border-radius: 16px;
    background: rgba(17, 22, 41, 0.45);
    display: grid;
    place-items: center;
    gap: 10px;
    color: var(--accent);
    cursor: pointer;
    transition: all 300ms ease;
}

.add-project-card span {
    font-size: 32px;
}

.add-project-card p {
    font-size: 15px;
    font-weight: 700;
}

.add-project-card:hover {
    border-color: rgba(6, 182, 212, 0.72);
    background: rgba(0, 82, 204, 0.08);
    transform: translateY(-3px);
}

.project-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 300ms;
    cursor: grab;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: block;
    object-fit: cover;
    object-position: center;
    flex: 0 0 auto;
}

.project-image-fallback {
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
}

.project-image-fallback span {
    max-width: 220px;
    color: rgba(241, 245, 249, 0.82);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.project-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.18);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-light); }
.project-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }

.project-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.btn-edit,
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 250ms ease;
}

.btn-edit {
    background: rgba(0, 168, 216, 0.12);
    border-color: rgba(0, 168, 216, 0.2);
    color: #67e8f9;
}

.btn-edit:hover {
    background: rgba(0, 168, 216, 0.18);
    border-color: rgba(0, 168, 216, 0.35);
    transform: translateY(-1px);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 82, 204, 0.2);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-card {
    background: rgba(17, 22, 41, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
}

.contact-card h3 { font-size: 28px; font-weight: 900; color: var(--accent); margin-bottom: 16px; letter-spacing: -1px; }
.contact-card p { color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; font-size: 16px; }

.contact-points { display: grid; gap: 20px; }
.contact-points span { color: var(--primary-light); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }
.contact-points strong { color: var(--text-light); font-size: 15px; display: block; }
.contact-points a { color: var(--primary-light); text-decoration: none; font-weight: 700; }
.contact-points a:hover { color: var(--accent); text-decoration: underline; }

.contact-form {
    background: rgba(17, 22, 41, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid label { display: flex; flex-direction: column; gap: 8px; }
.form-grid label span { font-weight: 600; color: var(--text-light); font-size: 14px; }

.form-grid input,
.form-grid textarea {
    background: rgba(10, 15, 31, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 15px;
    transition: all 300ms;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 82, 204, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.form-grid textarea {
    min-height: 120px;
    resize: vertical;
}

.form-grid label.full { grid-column: 1/-1; }
.form-actions { display: flex; gap: 12px; }

.footer {
    background: rgba(17, 22, 41, 0.5);
    border-top: 1px solid var(--border);
    padding: 60px 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 32px;
}

.footer-column h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-column p, .footer-column li { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.footer-column a { color: var(--accent); text-decoration: none; transition: color 300ms; }
.footer-column a:hover { color: var(--text-light); }
.footer-column ul { list-style: none; }

.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; }

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: slideInUp 600ms ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }

.eyebrow { color: var(--primary-light); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.user-pill { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(0, 82, 204, 0.12); border: 1px solid rgba(0, 168, 216, 0.4); border-radius: 999px; transition: all 300ms; cursor: pointer; }
.user-pill:hover { background: rgba(0, 82, 204, 0.2); border-color: rgba(0, 168, 216, 0.6); }
.user-pill img { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.2); }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content {
    background: linear-gradient(180deg, rgba(17, 22, 41, 0.98), rgba(13, 18, 34, 0.98));
    border: 1px solid rgba(0, 168, 216, 0.22);
    border-radius: 18px;
    padding: 30px;
    max-width: 580px;
    width: min(92vw, 580px);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.04em;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 300ms;
}
.modal-close:hover { color: var(--text-light); }

.modal-form {
    display: grid;
    gap: 16px;
}

.modal-form .form-group {
    display: grid;
    gap: 8px;
}

.modal-form .form-group label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
}

.modal-form .form-group input,
.modal-form .form-group textarea {
    width: 100%;
    background: rgba(10, 15, 31, 0.72);
    border: 1px solid rgba(0, 168, 216, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: all 250ms ease;
}

.modal-form .form-group input::placeholder,
.modal-form .form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.72);
}

.modal-form .form-group input:focus,
.modal-form .form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 168, 216, 0.48);
    box-shadow: 0 0 0 3px rgba(0, 168, 216, 0.12);
    background: rgba(10, 15, 31, 0.88);
}

.modal-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.modal-actions .button {
    min-width: 120px;
    justify-content: center;
}

.btn-save {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 82, 204, 0.25);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 82, 204, 0.32);
}

.btn-cancel {
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-light);
}

.btn-cancel:hover,
.modal-close:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.28);
}

@media (max-width: 1024px) {
    .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .topbar { flex-wrap: wrap; gap: 16px; padding: 12px 16px; }
    .nav { width: 100%; order: 3; gap: 8px; flex-wrap: wrap; justify-content: center; }
    .section { padding: 60px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2rem; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .contact-layout { grid-template-columns: 1fr; }
    .topbar-actions { width: 100%; justify-content: flex-end; }
    .user-menu-dropdown { right: 0; width: min(100%, 320px); }
    .brand-stack strong { font-size: 24px; }
    .brand-stack small { font-size: 11px; letter-spacing: 0.18em; }
}

@media (max-width: 480px) {
    .section { padding: 40px 16px; }
    .hero { padding: 40px 16px; }
    .hero h1 { font-size: 1.5rem; }
    .topbar { padding: 12px; }
    .card-grid { grid-template-columns: 1fr; }
    .hero-actions,
    .form-actions { flex-direction: column; }
    .button,
    .button-ghost,
    .button-secondary { width: 100%; text-align: center; }
    .brand { gap: 10px; }
    .brand-mark-logo { width: 46px; }
    .brand-stack strong { font-size: 22px; }
    .brand-stack small { font-size: 10px; letter-spacing: 0.14em; }
    .timeline {
        padding: 22px 20px;
    }
    .timeline::before {
        left: 46px;
        top: 32px;
        bottom: 32px;
    }
    .timeline-item {
        grid-template-columns: 42px 1fr;
        gap: 18px;
    }
    .timeline-item::before {
        left: 40px;
    }
    .timeline-item > strong,
    .timeline-item p strong {
        font-size: 16px;
    }
    .modal-content {
        padding: 22px;
        width: min(94vw, 580px);
    }
    .modal-actions {
        flex-direction: column;
    }
    .modal-actions .button {
        width: 100%;
    }
}

/* FORM FEEDBACK */
.contact-form-feedback {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.6;
}

.contact-form-feedback.is-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: #bbf7d0;
}

.contact-form-feedback.is-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.contact-form-feedback.is-pending {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
    color: #bfdbfe;
}

/* SPLIT LAYOUT */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* ADMIN/LICENSES - PRESERVE EXISTING */
/* Any existing license styles will remain unaffected */
