:root {
    --bg-color: #1b1b1f;
    --card-color: #1f1f1f;
    --text-white: #e3e3e3;
    --text-grey: #c4c7c5;
    --accent-blue: #7fcfff;
    --verified-blue: #1a73e8; 
    --badge-bg: #284777;
    --badge-text: #a8c7fa;
    --btn-text: #003355;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    font-family: 'Roboto', sans-serif;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.android-container {
    width: 100%;
    max-width: 412px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- Navigation Bar --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 16px;
    font-size: 20px;
    color: var(--text-white);
}

.nav-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-right i {
    font-size: 19px;
    color: var(--text-white);
}

/* --- Content Area --- */
.email-content {
    padding: 0 16px;
    flex-grow: 1;
}

.subject-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4px;
    margin-bottom: 12px;
}

.subject-text {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    width: 90%;
}

.star-btn {
    margin-top: 6px;
    color: var(--text-grey);
    font-size: 20px;
}

.label-badge {
    display: inline-block;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 24px;
}

/* --- Sender Header --- */
.sender-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.avatar-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sender-logo-png {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover to fill circle nicely */
}

.sender-meta {
    flex-grow: 1;
}

.meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sender-name {
    font-weight: 700;
    font-size: 15px;
}

/* --- NEW NON-PERFECT CIRCLE BADGE CSS --- */
.verified-stack {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.badge-bg {
    color: var(--verified-blue);
    font-size: 16px; /* The jagged circle size */
}

.badge-tick {
    color: var(--bg-color); /* Matches background to look transparent */
    font-size: 8px; /* Smaller tick fits inside */
    position: absolute;
    z-index: 2;
}

.date-text {
    font-size: 12px;
    color: var(--text-grey);
    margin-left: auto;
}

.meta-bottom {
    font-size: 13px;
    color: var(--text-grey);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
}

.sender-actions i {
    font-size: 20px;
    color: var(--text-grey);
    margin-left: 12px;
}

/* Body Text */
.body-text {
    font-size: 15px;
    margin-bottom: 20px;
}

/* --- Payment Card --- */
.payment-card {
    background-color: var(--card-color);
    padding: 30px 20px;
    border-radius: 4px;
    text-align: left;
    margin-bottom: 40px;
}

.card-logo-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.card-logo-png {
    width: 100%;
    height: auto;
}

.payment-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
}

.note-container {
    margin-top: 10px;
}

.note-label {
    font-size: 16px;
    color: var(--text-grey);
    margin-bottom: 15px;
}

.quote-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.quote-text {
    font-size: 24px;
    font-weight: 500;
    margin-top: -4px;
}

.quote-icon-left, .quote-icon-right {
    font-size: 22px;
    color: var(--text-white);
    opacity: 0.8;
}

/* --- Footer --- */
.bottom-actions {
    display: flex;
    gap: 10px;
    padding: 16px;
    padding-bottom: 24px;
    margin-top: auto;
}

.pill-btn {
    flex: 1;
    background-color: var(--accent-blue);
    color: var(--btn-text);
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.emoji-btn {
    width: 48px;
    height: 48px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-text);
    font-size: 20px;
    flex-shrink: 0;
}