/* ============================================================
   PV Recovery – Apple Glass Design System  |  #67B544 palette
   ============================================================ */

:root {
    --green:        #67b544;
    --green-dark:   #4a9030;
    --light:        #f7f7f7;
    --green-mid:    #5aa038;
    --green-light:  #89cc66;
    --green-pale:   #e8f5e0;
    --green-tint:   #f2fbec;

    --dark:   #1a1a1a;
    --text:   #2d2d2d;
    --muted:  #6b7280;
    --border: rgba(103,181,68,0.18);

    --glass-bg:       rgba(255,255,255,0.72);
    --glass-bg-solid: rgba(255,255,255,0.88);
    --glass-blur:     blur(24px) saturate(180%);
    --glass-shadow:   0 4px 32px rgba(103,181,68,0.10), 0 1px 6px rgba(0,0,0,0.05);
    --glass-shadow-h: 0 8px 40px rgba(103,181,68,0.18), 0 2px 8px rgba(0,0,0,0.07);

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --maxw:      1400px;
    --t:         0.2s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: #fff;
    min-height: 100vh;
}

h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4 { font-weight: 600; }

/* ── HEADER ── */
header {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav a {
    text-decoration: none;
    color: var(--text);
    margin: 0 13px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.75;
    transition: opacity var(--t), color var(--t);
}
header nav a:hover { opacity: 1; color: var(--green); }

header .right {
    display: flex;
    align-items: center;
    gap: 16px;
}
header .right > span {
    font-size: 13px;
    color: var(--muted);
}

/* ── BTN-LOGIN (header pill) ── */
header .btn-login,
.btn-login {
    padding: 8px 20px;
    border: 1.5px solid var(--green);
    border-radius: 30px;
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    cursor: pointer;
    transition: background var(--t), color var(--t);
    font-family: inherit;
    display: inline-block;
}
header .btn-login:hover,
.btn-login:hover {
    background: var(--green);
    color: #fff;
}

.btn-login--user {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    padding: 6px 20px;
}
.btn-login__label {
    display: block;
    font-size: 9px;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0.03em;
}
.btn-login__email {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

/* ── BUTTONS ── */
.btn-green {
    display: inline-block;
    padding: 10px 32px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t), box-shadow var(--t);
}
.btn-green:hover {
    background: var(--green-dark);
    box-shadow: 0 4px 16px rgba(103,181,68,0.35);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    display: inline-block;
    padding: 7px 18px;
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--green);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t), color var(--t);
}
.btn-outline:hover { background: var(--green); color: #fff; text-decoration: none; }

.btn-muted {
    display: inline-block;
    padding: 7px 18px;
    background: transparent;
    color: var(--muted);
    border: 1.5px solid #ddd;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t), color var(--t);
}
.btn-muted:hover { background: #f5f5f5; color: var(--text); text-decoration: none; }

.btn-danger-outline {
    display: inline-block;
    padding: 7px 18px;
    background: transparent;
    color: #d9534f;
    border: 1.5px solid #d9534f;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t), color var(--t);
}
.btn-danger-outline:hover { background: #d9534f; color: #fff; }

/* ── GLASS CARD ── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    padding: 28px 32px;
}
.glass-card + .glass-card { margin-top: 20px; }

/* ── APP CONTENT ── */
.app-content {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 24px 60px;
}

/* ── PAGE HEADER ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--green-dark);
    margin: 0;
}

/* ── SECTION TITLE ── */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title a { margin-left: auto; }

/* ── MEMBER NAV ── */
.member-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.80);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(103,181,68,0.06);
}
.member-nav-links { display: flex; gap: 6px; }
.member-nav-links a {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--t), color var(--t);
}
.member-nav-links a:hover  { background: var(--green-pale); color: var(--green-dark); }
.member-nav-links a.active { background: var(--green); color: #fff; }

/* ── FORM GRID ── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 48px;
    margin-bottom: 28px;
}

.form-field {
    display: flex;
    align-items: center;
}
.form-field label {
    min-width: 160px;
    text-align: right;
    padding-right: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select,
.form-field .form-control {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.9);
    color: var(--text);
    transition: border-color var(--t), box-shadow var(--t);
}
.form-field input:focus,
.form-field select:focus,
.form-field .form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(103,181,68,0.12);
}
.form-field input[readonly],
.form-field input[disabled] {
    background: rgba(240,248,234,0.5);
    color: var(--muted);
    border-color: #e8ede4;
}

/* panel form - single column */
.form-col {
    max-width: 480px;
}
.form-col .form-field {
    margin-bottom: 14px;
}
.form-col .form-field label {
    min-width: 180px;
}

.form-footer {
    background: rgba(240,248,234,0.4);
    border-top: 1px solid var(--border);
    margin: 0 -32px -28px;
    padding: 18px 32px;
    text-align: center;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ── ALERTS ── */
.alert-glass {
    background: rgba(240,248,234,0.65);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 24px;
}
.alert-glass--warning {
    background: rgba(255,248,230,0.7);
    border-left-color: #f0ad4e;
}
.alert-glass--danger {
    background: rgba(255,235,235,0.7);
    border-left-color: #d9534f;
}

.flash-success {
    background: rgba(212,237,218,0.75);
    color: #155724;
    border: 1px solid rgba(195,230,203,0.7);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.flash-error {
    background: rgba(248,215,218,0.75);
    color: #721c24;
    border: 1px solid rgba(245,198,203,0.7);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ── GLASS TABLE ── */
.glass-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 8px;
}
.glass-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--border);
}
.glass-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(103,181,68,0.08);
    color: var(--text);
}
.glass-table tbody tr:last-child td { border-bottom: 2px solid var(--border); }
.glass-table tbody tr:hover td      { background: rgba(103,181,68,0.04); }
.glass-table .row-sum td {
    font-weight: 700;
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--border);
    background: rgba(103,181,68,0.05);
}

/* ── BADGES ── */
.badge-paid {
    display: inline-block;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}
.badge-unpaid {
    display: inline-block;
    background: #d9534f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.btn-pdf {
    display: inline-block;
    background: rgba(103,181,68,0.12);
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background var(--t), color var(--t);
}
.btn-pdf:hover { background: var(--green); color: #fff; text-decoration: none; }

/* ── BILLING: ACCOUNT STATE BOX ── */
.account-state-box {
    background: linear-gradient(135deg, rgba(103,181,68,0.10), rgba(74,144,48,0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    max-width: 480px;
    margin-top: 32px;
}
.account-state-box h2 {
    font-size: 17px;
    margin-top: 0;
    color: var(--green-dark);
    margin-bottom: 14px;
}
.account-state-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(103,181,68,0.12);
    font-size: 14px;
}
.account-state-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 15px;
    color: var(--green-dark);
    padding-top: 12px;
}

/* ── MATERIAL ICONS ── */
.material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
    line-height: 1;
    user-select: none;
}

/* ── ADMIN DASHBOARD ── */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.admin-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    padding: 22px 20px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow var(--t), transform var(--t);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-card:hover {
    box-shadow: var(--glass-shadow-h);
    transform: translateY(-3px);
    color: var(--text);
    text-decoration: none;
}
.admin-card__icon .material-symbols-outlined {
    font-size: 32px;
    color: var(--green);
}
.admin-card__title { font-size: 14px; font-weight: 700; color: var(--green-dark); }
.admin-card__desc  { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ── ICON BUTTON ── */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background var(--t), color var(--t), border-color var(--t);
    background: transparent;
    white-space: nowrap;
}
.btn-icon .material-symbols-outlined { font-size: 16px; }

.btn-icon--green  { color: var(--green-dark); border-color: var(--border); }
.btn-icon--green:hover  { background: var(--green); color: #fff; border-color: var(--green); text-decoration: none; }

.btn-icon--muted  { color: var(--muted); border-color: #e0e0e0; }
.btn-icon--muted:hover  { background: #f5f5f5; color: var(--text); border-color: #ccc; text-decoration: none; }

.btn-icon--danger { color: #d9534f; border-color: rgba(217,83,79,0.25); }
.btn-icon--danger:hover { background: #d9534f; color: #fff; border-color: #d9534f; }

.btn-icon--success { color: #2e7d32; border-color: rgba(46,125,50,0.25); }
.btn-icon--success:hover { background: #2e7d32; color: #fff; border-color: #2e7d32; }

/* ── AUTH (LOGIN / REGISTER) ── */
.auth-page {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 48px rgba(103,181,68,0.13), 0 2px 8px rgba(0,0,0,0.06);
    padding: 40px 44px;
    width: 100%;
    max-width: 420px;
}
.auth-card h3 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 28px;
    margin-top: 0;
}
.auth-card .form-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--muted) !important;
    margin-bottom: 5px;
    display: block;
}
.auth-card .form-control,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.9);
    color: var(--text);
    transition: border-color var(--t), box-shadow var(--t);
}
.auth-card .form-control:focus,
.auth-card input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(103,181,68,0.12);
}
.auth-card .alert-danger,
.auth-card .alert {
    background: rgba(248,215,218,0.75);
    border: 1px solid rgba(245,198,203,0.7);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: #721c24;
    margin-bottom: 16px;
}
.auth-card .mb-3 { margin-bottom: 14px !important; }
.auth-card .form-check { display: flex; align-items: center; gap: 8px; }
.auth-card .form-check-input { width: 16px; height: 16px; flex-shrink: 0; }

/* ── HERO ── */
.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
.hero img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}
.hero .text {
    position: absolute;
    bottom: 14%;
    left: 60px;
    width: 45%;
    color: white;
    max-width: 450px;
}
.hero h1 { font-size: 42px; margin: 0; }
.hero p  { margin-top: 15px; line-height: 1.6; font-weight: 300; }
.hero .cta {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: white;
    color: var(--dark);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
}
.hero .icon {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero::before {
    content: "";
    background: linear-gradient(to top right, #67b544 0%, rgba(103,181,68,0.2) 50%, transparent 100%);
    position: absolute;
    width: 100%;
    height: 100%;
}
#hero { position: relative; }

/* ── HOME SECTIONS ── */
.section {
    max-width: var(--maxw);
    margin: auto;
    padding: 0;
    margin-top: 80px;
    margin-bottom: 80px;
}
.section p { font-weight: 300; line-height: 1.6; }

.partners {
    margin-top: 80px;
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1089px;
    margin: auto;
    margin-top: 80px;
}
.partners img { height: 45px; filter: grayscale(1); opacity: 1; }
.partners img:hover { filter: grayscale(0); }

#partneri img       { filter: grayscale(1); opacity: 1; margin: auto; }
#partneri img:hover { filter: grayscale(0); opacity: 1; margin: auto; }

.docs {
    background: var(--light);
    padding: 80px 40px;
}
.docs .wrap { max-width: var(--maxw); margin: 0 auto; }

.doc-grid {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.doc-card {
    width: 300px;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    background-image: url(pic/pdficon.jpg);
    background-repeat: no-repeat;
    background-position: right 10px top 14px;
    background-size: 35px;
}
.doc-card p { font-size: 14px; font-weight: 300; line-height: 1.6; }
.doc-card a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--green);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.contacts {
    max-width: var(--maxw);
    padding: 80px 40px;
    margin: 0 auto;
    display: grid;
    align-items: end;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
}
#kontakty h2 { margin-bottom: 40px; }

h2 span { color: var(--green); clear: both; display: block; }

.contacts .box {
    background: var(--green);
    color: white;
    padding: 40px;
    border-radius: var(--radius);
    max-width: 100%;
    line-height: 1.6;
    font-weight: 400;
}
.contacts img { width: 100%; border-radius: var(--radius); }

.textin { display: grid; grid-template-columns: 4fr 8fr; grid-gap: 30px; }

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 40px;
    color: #555;
    font-weight: 300;
}

/* ── LOGIN POPUP ── */
#login-popup { border-radius: 24px; }

/* ── BOOTSTRAP OVERRIDES (admin pages) ── */
.container {
    max-width: 1200px !important;
    padding-top: 32px !important;
    padding-bottom: 60px !important;
}

.card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--glass-shadow) !important;
}
.card-body { padding: 20px 24px !important; }

.table { font-size: 14px; }
.table thead th {
    font-weight: 600 !important;
    color: var(--muted) !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--border) !important;
    background: transparent !important;
    padding: 11px 14px !important;
}
.table tbody td {
    padding: 11px 14px !important;
    border-bottom: 1px solid rgba(103,181,68,0.08) !important;
    vertical-align: middle !important;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(103,181,68,0.03) !important;
}
.table-hover > tbody > tr:hover > * {
    background-color: rgba(103,181,68,0.07) !important;
}
.table-success > td,
tr.table-success > td {
    background-color: rgba(103,181,68,0.11) !important;
}

.form-control {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: var(--radius-sm) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    background: rgba(255,255,255,0.9) !important;
}
.form-control:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(103,181,68,0.12) !important;
}
.form-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--muted) !important;
}
.form-check-input:checked {
    background-color: var(--green) !important;
    border-color: var(--green) !important;
}
.btn.btn-primary {
    background: var(--green) !important;
    border-color: var(--green) !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    transition: background var(--t), box-shadow var(--t) !important;
}
.btn.btn-primary:hover {
    background: var(--green-dark) !important;
    border-color: var(--green-dark) !important;
    box-shadow: 0 4px 14px rgba(103,181,68,0.3) !important;
}
.btn.btn-secondary {
    border-radius: 30px !important;
    font-weight: 600 !important;
}
.alert { border-radius: var(--radius-sm) !important; font-size: 14px !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
    .hero .text { width: 55%; }
}
@media (max-width: 900px) {
    header { flex-direction: column; gap: 20px; text-align: center; }
    .member-nav { flex-direction: column; align-items: flex-start; gap: 6px; }
    .hero img { height: 420px; }
    .hero .text { top: 20%; left: 30px; width: 80%; }
    .contacts { flex-direction: column; text-align: center; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .form-field label { min-width: 120px; }
}
@media (max-width: 600px) {
    header nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .hero h1 { font-size: 28px; }
    .hero .text { left: 20px; top: 15%; width: 85%; }
    .partners { flex-wrap: wrap; gap: 30px; justify-content: center; }
    .doc-grid { justify-content: center; }
    .app-content { padding: 0 14px 40px; }
    .glass-card { padding: 20px 16px; }
    .form-footer { margin: 0 -16px -20px; padding: 16px; }
    .auth-card { padding: 28px 20px; }
    .admin-dashboard { grid-template-columns: 1fr 1fr; }
}
