/*
Theme Name: Shareholders Association
Theme URI: https://yourdomain.com
Author: Your Name
Author URI: https://yourdomain.com
Description: Fully responsive shareholders association management theme
Version: 1.0
License: GPL v2 or later
Text Domain: shareholders-association
Tags: responsive, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --bg: #0B0F14;
    --bg2: #111820;
    --card: #161E28;
    --card2: #1C2633;
    --border: #1E2A38;
    --fg: #E8ECF1;
    --muted: #7A8BA0;
    --accent: #0EA47A;
    --accent-l: #12D49A;
    --accent-g: rgba(14, 164, 122, 0.15);
    --gold: #D4A843;
    --gold-l: #F0CC6B;
    --gold-g: rgba(212, 168, 67, 0.12);
    --danger: #E54D4D;
    --danger-g: rgba(229, 77, 77, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-atm {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-atm .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbF 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(14, 164, 122, 0.06);
    top: -150px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(212, 168, 67, 0.04);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

@keyframes orbF {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(14, 164, 122, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 164, 122, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
}

.login-wrap {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-brand {
    padding: 32px 20px;
    background: linear-gradient(135deg, #0B1A14, #0F2419 50%, #111820);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(14, 164, 122, 0.3);
}

.login-brand h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.login-brand h1 span {
    color: var(--gold-l);
}

.login-brand p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.brand-stats .sv {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-l);
}

.brand-stats .sl {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.login-form {
    padding: 28px 20px;
}

.login-form h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-form .sub {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 20px;
}

.fg {
    margin-bottom: 14px;
}

.fg label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}

.iw {
    position: relative;
}

.iw i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
    transition: color 0.3s;
}

.iw input,
.iw select {
    width: 100%;
    padding: 11px 12px 11px 38px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--fg);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
}

.iw input:focus,
.iw select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-g);
}

.iw input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent), #0C8C68);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}

.login-btn:active {
    transform: scale(0.98);
}

.login-toggle {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: var(--muted);
}

.login-toggle a {
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
}

.login-err {
    background: var(--danger-g);
    border: 1px solid rgba(229, 77, 77, 0.2);
    color: var(--danger);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    margin-bottom: 12px;
    display: none;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Navigation */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 12px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-brand .ni {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

.nav-brand span {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.nav-brand span em {
    font-style: normal;
    color: var(--gold-l);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-def {
    background: linear-gradient(135deg, var(--accent), var(--gold));
}

.uname {
    font-size: 11px;
    font-weight: 600;
    display: none;
}

.urole {
    font-size: 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none;
}

.logout-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 6px 9px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    transition: all 0.2s;
}

/* Buttons */
.btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-p {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-g {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-o {
    background: transparent;
    color: var(--muted);
}

.btn-d {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 9px;
}

/* Dashboard */
.dash {
    display: none;
    min-height: 100vh;
}

.dash.active {
    display: block;
}

.dc {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 12px 40px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome {
    margin-bottom: 20px;
    animation: fadeUp 0.5s ease-out;
}

.welcome h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.welcome h2 span {
    color: var(--accent-l);
}

.welcome p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

/* Stats Grid */
.sg {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.sc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    animation: fadeUp 0.5s ease-out backwards;
}

.sc .si {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-bottom: 10px;
}

.sc.gn .si {
    background: var(--accent-g);
    color: var(--accent-l);
}
.sc.gd .si {
    background: var(--gold-g);
    color: var(--gold-l);
}
.sc.rd .si {
    background: var(--danger-g);
    color: var(--danger);
}

.sc .sv {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
}

.sc.gn .sv { color: var(--accent-l); }
.sc.gd .sv { color: var(--gold-l); }
.sc.rd .sv { color: var(--danger); }

.sc .sl {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(14, 164, 122, 0.08), rgba(212, 168, 67, 0.05));
    border: 1px solid rgba(14, 164, 122, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-box i {
    color: var(--gold);
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

.info-box strong {
    color: var(--fg);
}

/* Section Cards */
.sec {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    animation: fadeUp 0.5s ease-out backwards;
}

.sec-h {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.sec-h h3 {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-family);
}

.sec-h h3 i {
    color: var(--accent);
    font-size: 12px;
}

.sec-b {
    padding: 16px;
}

/* Tables */
.tbl-r {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dt {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.dt th {
    text-align: left;
    padding: 8px 10px;
    font-size: 9px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.dt td {
    padding: 10px 10px;
    font-size: 11px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.dt tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.b-a { background: var(--accent-g); color: var(--accent-l); }
.b-i { background: var(--danger-g); color: var(--danger); }
.b-g { background: var(--gold-g); color: var(--gold-l); }
.b-u { background: rgba(59, 130, 246, 0.12); color: #93C5FD; }

.tg { color: var(--gold-l); font-weight: 700; }
.ta { color: var(--accent-l); font-weight: 600; }
.td { color: var(--danger); font-weight: 600; }

/* Info Grid */
.ig {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ii {
    padding: 12px;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.ii .il {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.ii .iv {
    font-size: 13px;
    font-weight: 700;
}

.ii.full {
    grid-column: 1 / -1;
}

/* Profile Row */
.profile-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.photo-lg {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 2px solid var(--gold);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    color: var(--muted);
    font-size: 28px;
}

.photo-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 150px;
}

.profile-info h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 2px;
}

.profile-info p {
    color: var(--muted);
    font-size: 11px;
    word-break: break-word;
}

/* Certificate */
.cert {
    background: linear-gradient(135deg, #1A2820, #1C1E28 50%, #28201A);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
}

.cert::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 6px;
    pointer-events: none;
}

.cert-hdr {
    text-align: center;
    margin-bottom: 16px;
}

.cert-hdr h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--gold-l);
}

.cert-hdr p {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.cr {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(212, 168, 67, 0.15);
    font-size: 11px;
    flex-wrap: wrap;
    gap: 4px;
}

.cr:last-child {
    border-bottom: none;
}

.cr .cl {
    color: var(--muted);
}

.cr .cv {
    font-weight: 700;
}

.cert-seal {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.35;
}

.cert-seal i {
    color: var(--gold);
    font-size: 15px;
}

/* Photo Upload */
.photo-upload {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg2);
}

.photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload .pu-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 9px;
}

.photo-upload .pu-ph i {
    font-size: 18px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
    background: var(--bg2);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.tab.active {
    background: var(--accent);
    color: #fff;
}

.tc {
    display: none;
}

.tc.active {
    display: block;
}

/* Search */
.search {
    position: relative;
    max-width: 100%;
    width: 100%;
}

.search input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--fg);
    font-size: 11px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.search input:focus {
    border-color: var(--accent);
}

.search i {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 11px;
}

/* Filter Pills */
.fpills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.fpill {
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.fpill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Modal */
.mo {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
}

.mo.active {
    display: flex;
}

.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px 16px 12px 12px;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    animation: modalIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.m-hdr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-hdr h3 {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-family);
}

.m-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
    flex-shrink: 0;
}

.m-body {
    padding: 16px;
}

.m-foot {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

/* Payment List */
.pay-list {
    max-height: 400px;
    overflow-y: auto;
}

.pay-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    cursor: pointer;
}

.pay-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.pay-item .pi-info {
    flex: 1;
}

.pay-item .pi-month {
    font-size: 11px;
    font-weight: 600;
}

.pay-item .pi-detail {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px;
}

.pay-item .pi-amt {
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

/* Toast */
.toast-c {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.toast-s { background: #0D3320; border: 1px solid rgba(34, 197, 94, 0.3); color: #86EFAC; }
.toast-e { background: #331414; border: 1px solid rgba(229, 77, 77, 0.3); color: #FCA5A5; }
.toast-i { background: #0F2438; border: 1px solid rgba(59, 130, 246, 0.3); color: #93C5FD; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* Empty State */
.empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--muted);
}

.empty i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.3;
    display: block;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (768px+) */
@media screen and (min-width: 768px) {
    .login-wrap {
        flex-direction: row;
        max-width: 820px;
        border-radius: 20px;
    }
    
    .login-brand {
        flex: 1;
        padding: 40px 32px;
    }
    
    .login-brand h1 {
        font-size: 26px;
    }
    
    .login-form {
        flex: 1;
        padding: 40px 32px;
    }
    
    .login-form h2 {
        font-size: 20px;
    }
    
    .top-nav {
        padding: 0 20px;
        height: 64px;
    }
    
    .uname {
        display: block;
    }
    
    .urole {
        display: block;
    }
    
    .dc {
        padding: 24px 20px 60px;
        max-width: 760px;
    }
    
    .welcome h2 {
        font-size: 26px;
    }
    
    .sg {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    
    .sc .sv {
        font-size: 22px;
    }
    
    .ig {
        grid-template-columns: 1fr 1fr;
    }
    
    .photo-lg {
        width: 90px;
        height: 90px;
    }
    
    .profile-info h3 {
        font-size: 20px;
    }
    
    .cert-hdr h3 {
        font-size: 18px;
    }
    
    .tabs {
        width: fit-content;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .tab {
        padding: 9px 16px;
        font-size: 12px;
        flex: none;
    }
    
    .search {
        max-width: 240px;
        width: auto;
    }
    
    .modal {
        border-radius: 16px;
        max-width: 520px;
    }
    
    .toast-c {
        left: auto;
        right: 20px;
        top: 76px;
        max-width: 380px;
    }
}

/* Desktop (1024px+) */
@media screen and (min-width: 1024px) {
    .login-wrap {
        max-width: 920px;
    }
    
    .dc {
        max-width: 1100px;
        padding: 28px 24px 60px;
    }
    
    .photo-lg {
        width: 100px;
        height: 100px;
    }
    
    .modal {
        max-width: 560px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #F0F2F5;
        --bg2: #E4E7EC;
        --card: #FFFFFF;
        --card2: #F7F8FA;
        --border: #D1D5DB;
        --fg: #1A1D24;
        --muted: #6B7A8F;
    }
    
    .login-brand {
        background: linear-gradient(135deg, #E8F0ED, #D1E0DA);
    }
    
    .top-nav {
        background: rgba(240, 242, 245, 0.85);
    }
    
    .cert {
        background: linear-gradient(135deg, #E8F0ED, #DCE4E8 50%, #EDE8E0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}