/* =========================
   CSS VARIABLES
   ========================= */
:root {
    --bg: #fefefe;
    --card: #ffffff;
    --accent: #4caf50;
    --accent-soft: #e8f5e9;
    --text: #2b2f38;
    --muted: #6b7280;
    --border: #e5e7eb;
}

/* =========================
   GLOBAL RESET
   ========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 24px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.float-right {
    float: right;
}

/* =========================
   LAYOUT
   ========================= */
.container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.container-small {
    max-width: 400px;
    margin: auto;
}

.container-full-width {
    max-width: 900px;
    margin: auto;
}

@media (min-width: 900px) {
    .container {
        grid-template-columns: 1.2fr 1fr;
    }
}

/* =========================
   HEADER / LOGO
   ========================= */
header {
    max-width: 1200px;
    margin: 0 auto 24px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 26px;
}

header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.logo {
    max-width: 220px;
    margin: auto;
}

/* =========================
   CARDS
   ========================= */
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card h2 {
    margin-top: 0;
    font-size: 20px;
}

/* =========================
   TYPOGRAPHY & FORMS
   ========================= */
label {
    font-size: 13px;
    color: var(--muted);
    display: block;
    margin-top: 14px;
}

input,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* =========================
   BUTTONS
   ========================= */
button,
.secondary {
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

button {
    background: var(--accent);
    color: #fff;
}

.secondary {
    background: #e5e7eb;
    color: #111;
    text-decoration: none;
}

/* =========================
   BADGES & LINKS
   ========================= */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
}

.public-link {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin: 10px 0 16px;
    word-break: break-all;
}

/* =========================
   EDIT TRACKER
   ========================= */

.row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.col-half {
    flex: 1;
}

.help {
    width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    background: var(--muted);
    color: white;
    text-align: center;
    font-size: 12px;
    cursor: help;
    margin-left: 4px;
    float: right;
}

/* =========================
   TRACKER / META
   ========================= */
.tracker {
    max-width: 900px;
    margin: auto;
    background: #fefefe;
    border-radius: 18px;
    padding: 30px 32px 36px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.meta-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    background: #f4f7fb;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 36px;
    font-size: 14px;
}

.meta-item {
    background: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #e5eaf0;
    text-align: center;
}

.meta-label {
    color: #777;
    font-size: 12px;
}

.meta-value {
    font-weight: 600;
}

/* =========================
   PROGRESS / STEPS
   ========================= */
.icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.step {
    width: 20%;
    text-align: center;
}

.icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dce3ec;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 22px;
}

.step.completed .icon {
    background: #2196f3;
    color: #fff;
}

.step.active .icon {
    background: var(--accent);
    color: #fff;
}

.line {
    height: 6px;
    background: #e0e6ee;
    border-radius: 4px;
    margin: 0 28px 16px;
    overflow: hidden;
}

.line-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    transition: width 0.6s ease;
}

/* =========================
   ACTIONS
   ========================= */

.actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
}

@media (min-width: 600px) {
    .actions {
        grid-template-columns: 1fr 1fr;
    }
}

.action {
    border-radius: 14px;
    padding: 22px;
    background: #f8f9fb;
    border: 1px solid var(--border);
}

.action h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.action p {
    font-size: 14px;
    color: var(--muted);
}

/* =========================
   UPDATES
   ========================= */
.update {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8f9fb;
    margin-bottom: 10px;
    font-size: 14px;
    border-left: 4px solid transparent;
}

.update.latest {
    background: var(--accent-soft);
    border-left-color: var(--accent);
}

.update small {
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
}

/* =========================
   SHARE ICONS
   ========================= */
.share-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.share-icons a {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease;
}

.share-icons a:hover {
    transform: translateY(-2px);
}

.share-icons svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.share-icons a:nth-child(1) { background:#1877f2; }
.share-icons a:nth-child(2) { background:#000; }
.share-icons a:nth-child(3) { background:#25d366; }
.share-icons a:nth-child(4) { background:#f7b267; }

/* =========================
   FOOTER
   ========================= */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 600px) {
    .meta-bar { grid-template-columns: 1fr; }
    .icons { font-size: 18px; }
}

    /* Courier Meta Bar */
    .meta-bar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 14px;
        background: #f4f7fb;
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 36px;
        font-size: 14px;
    }

    .meta-item {
        background: #fff;
        padding: 12px 14px;
        border-radius: 10px;
        box-shadow: inset 0 0 0 1px #e5eaf0;
        text-align: center;
    }

    .meta-label {
        color: #777;
        font-size: 12px;
    }

    .meta-value {
        font-weight: 600;
        margin-top: 2px;
    }

    /* Tracker */
    .icons {
        display: flex;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .step {
        text-align: center;
        width: 20%;
    }

    .icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #dce3ec;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: auto;
        font-size: 22px;
    }

    .step.completed .icon {
        background: #2196f3;
        color: #fff;
    }

    .step.active .icon {
        background: #4caf50;
        color: #fff;
    }

    .line {
        height: 6px;
        background: #e0e6ee;
        border-radius: 4px;
        margin: 0 28px 16px;
        overflow: hidden;
    }

    .line-fill {
        height: 100%;
        width: 55%; /* PROGRESS */
        background: linear-gradient(90deg, #4caf50, #66bb6a);
        transition: width 0.6s ease;
    }

    .descs {
        display: flex;
        justify-content: space-between;
        text-align: center;
        font-size: 13px;
        color: #555;
        margin-bottom: 40px;
    }

    .descs div {
        width: 20%;
    }

    /* Updates */
    .updates {
        margin-top: 10px;
    }

    .updates h2 {
        font-size: 18px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .update {
        display: grid;
        grid-template-columns: 190px 1fr;
        gap: 16px;
        padding: 14px 18px;
        background: #f8f9fb;
        border-radius: 12px;
        margin-bottom: 12px;
        font-size: 14px;
        box-shadow: inset 0 0 0 1px #e5eaf0;
    }

    .update.has-image {
        grid-template-columns: 190px 1fr 50px;
    }

    .update.latest {
        background: #e8f5e9;
        box-shadow: inset 0 0 0 1px #c8e6c9;
        border-left: 4px solid #4caf50;
    }

    .update .date {
        font-weight: 600;
        color: #333;
        border-right: 1px solid #ddd;
        text-align: center;
        line-height: 30px;
    }

    .update .text {
        color: #555;
        line-height: 30px;
    }

    .update .image {
        width: 50px;
        height: 30px;
    }

    .update .image img {
        object-fit: cover;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Mobile */
    @media (max-width: 600px) {
        .meta-bar {
            grid-template-columns: 1fr;
        }

        .update {
            grid-template-columns: 1fr;
        }

        .icons {
            font-size: 18px;
        }
    }

    .gdesc-inner {
        padding: 10px !important;
    }

    .gslide-title {
        margin: 0px !important;
    }

    .logo-header {
        height: 66px;
        margin-bottom: 10px;
    }

    .logo-header .logo {
        max-height: 66px;
        float: left;
        margin-right: 10px;
    }

    .logo-header h1 {
        margin-bottom: 4px;
        margin-top: 0px;
    }

    .subtitle {
        color: #666;
        margin-bottom: 30px;
    }