
.d-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
}

.d-navbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4px;
}

.d-navbar-brand {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15em;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin-right: 8px;
}

.d-navbar-brand:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
}

.d-nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.2s;
    white-space: nowrap;
}

.d-nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.d-nav-user {
    position: relative;
    margin-left: auto;
}

.d-nav-user-btn {
    background: rgba(102,126,234,0.3);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.d-nav-user-btn:hover {
    background: rgba(102,126,234,0.5);
}

.d-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 180px;
    overflow: hidden;
    z-index: 1001;
}

.d-nav-dropdown.open {
    display: block;
}

.d-nav-dropdown a {
    display: block;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9em;
}

.d-nav-dropdown a:hover {
    background: #f0f0f5;
}

.d-nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4em;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.d-mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 10px 20px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.d-mobile-menu.open {
    display: block;
}

.d-mobile-menu a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.d-mobile-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

@media (max-width: 900px) {
    .d-nav-link { display: none; }
    .d-nav-user { display: none; }
    .d-nav-mobile-toggle { display: block; }
    .d-mobile-menu a.desktop-hide { display: none; }
}

@media (min-width: 901px) {
    .d-mobile-menu { display: none !important; }
}

.d-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85em;
}

.d-footer a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}

.d-footer a:hover {
    color: #c4b5fd;
}

.d-footer-social {
    display: inline-flex;
    gap: 16px;
    margin-bottom: 4px;
}

.d-footer-social a {
    font-size: 1.3em;
}

.d-roulette-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.d-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 80px;
}

.d-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.d-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 28px;
}

.d-card-header h1,
.d-card-header h2,
.d-card-header h3 {
    margin: 0;
    color: white;
}

.d-card-header h1 { font-size: 1.6em; }
.d-card-header h2 { font-size: 1.4em; }
.d-card-header h3 { font-size: 1.15em; }

.d-card-header-sub {
    color: rgba(255,255,255,0.8);
    margin: 4px 0 0;
    font-size: 0.9em;
}

.d-card-body {
    padding: 24px 28px;
}

.d-form-group {
    margin-bottom: 18px;
}

.d-form-group label {
    display: block;
    color: #444;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.d-form-group input[type="text"],
.d-form-group input[type="password"],
.d-form-group input[type="email"],
.d-form-group input[type="number"],
.d-form-group input[type="date"],
.d-form-group textarea,
.d-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fafbfc;
}

.d-form-group input:focus,
.d-form-group textarea:focus,
.d-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
    background: white;
}

.d-form-group small {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 0.85em;
}

.d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: white;
}

.d-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.d-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.d-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.d-btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.d-btn-danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.d-btn-info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.d-btn-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.d-btn-block {
    width: 100%;
}

.d-btn-sm {
    padding: 6px 14px;
    font-size: 0.85em;
    border-radius: 8px;
}

.d-table {
    width: 100%;
    border-collapse: collapse;
}

.d-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.d-table th,
.d-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.d-table th {
    font-weight: 600;
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.d-table tbody tr {
    transition: background 0.2s;
}

.d-table tbody tr:hover {
    background: #f8f9fc;
}

.d-table tbody tr:last-child td {
    border-bottom: none;
}

.d-table-wrapper {
    overflow-x: auto;
}

.d-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 700;
}

.d-tag-success {
    background: #c6f6d5;
    color: #22543d;
}

.d-tag-danger {
    background: #fed7d7;
    color: #742a2a;
}

.d-tag-info {
    background: #bee3f8;
    color: #2a4365;
}

.d-tag-warning {
    background: #fefcbf;
    color: #744210;
}

.d-alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.d-alert-error {
    background: linear-gradient(135deg, #fed7d7, #fff5f5);
    border-left: 4px solid #f56565;
    color: #742a2a;
}

.d-alert-success {
    background: linear-gradient(135deg, #c6f6d5, #f0fff4);
    border-left: 4px solid #48bb78;
    color: #22543d;
}

.d-alert-info {
    background: linear-gradient(135deg, #bee3f8, #ebf8ff);
    border-left: 4px solid #4299e1;
    color: #2a4365;
}

.d-alert-warning {
    background: linear-gradient(135deg, #fefcbf, #fffff0);
    border-left: 4px solid #ecc94b;
    color: #744210;
}

.d-alert i {
    font-size: 1.3em;
    margin-top: 2px;
}

.d-alert h4 {
    margin: 0 0 4px;
    font-size: 1em;
}

.d-alert p {
    margin: 0;
    line-height: 1.5;
}

.d-empty {
    padding: 50px 28px;
    text-align: center;
    color: #999;
}

.d-empty i {
    font-size: 3.5em;
    margin-bottom: 16px;
    opacity: 0.25;
    display: block;
}

.d-empty p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.5;
}

.d-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.d-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.d-text-muted { color: #999; }
.d-text-green { color: #38a169; font-weight: 700; }
.d-text-red { color: #e53e3e; font-weight: 700; }

.d-msg-card {
    max-width: 550px;
    margin: 60px auto;
}

.d-msg-icon {
    font-size: 3.5em;
    margin-bottom: 16px;
}

.d-msg-icon.success { color: #48bb78; }
.d-msg-icon.error { color: #f56565; }
.d-msg-icon.info { color: #4299e1; }
.d-msg-icon.warning { color: #ed8936; }

.d-notfound {
    text-align: center;
    padding: 80px 20px;
}

.d-notfound-code {
    font-size: 6em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.d-notfound h2 {
    color: #333;
    margin: 0 0 10px;
}

.d-notfound p {
    color: #999;
    margin-bottom: 30px;
}

.d-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.d-product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.d-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.d-product-card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 20px;
}

.d-product-card-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.d-product-card-body {
    padding: 20px;
}

.d-product-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.d-product-stock {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 14px;
}

.d-product-card-body input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.d-product-card-body input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.d-cotacao-hero {
    text-align: center;
    padding: 50px 28px;
}

.d-cotacao-value {
    font-size: 2.8em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
}

.d-cotacao-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 24px;
}

.d-cotacao-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.d-cotacao-stat {
    text-align: center;
}

.d-cotacao-stat-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #333;
}

.d-cotacao-stat-label {
    color: #999;
    font-size: 0.9em;
    margin-top: 4px;
}

.d-home-text {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 36px 40px;
    text-align: justify;
    line-height: 1.8;
    color: #444;
}

.d-home-text p {
    margin: 0 0 16px;
    text-indent: 2em;
}

.d-home-text p:last-child {
    margin-bottom: 0;
}
